has_sequence() to work with older versions of Firebird
that don't provide labels for result columns. [ticket:1521]
in which case the incompatible "output type handler" won't
be used. This will impact decimal accuracy and some
unicode handling issues. [ticket:1775]
+
+- firebird
+ - Added a label to the query used within has_table() and
+ has_sequence() to work with older versions of Firebird
+ that don't provide labels for result columns. [ticket:1521]
0.6.0
=====
"""Return ``True`` if the given table exists, ignoring the `schema`."""
tblqry = """
- SELECT 1 FROM rdb$database
+ SELECT 1 AS has_table FROM rdb$database
WHERE EXISTS (SELECT rdb$relation_name
FROM rdb$relations
WHERE rdb$relation_name=?)
"""Return ``True`` if the given sequence (generator) exists."""
genqry = """
- SELECT 1 FROM rdb$database
+ SELECT 1 AS has_sequence FROM rdb$database
WHERE EXISTS (SELECT rdb$generator_name
FROM rdb$generators
WHERE rdb$generator_name=?)