summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases
diff options
context:
space:
mode:
authorLele Gaifax <lele@metapensiero.it>2007-12-15 13:23:15 +0000
committerLele Gaifax <lele@metapensiero.it>2007-12-15 13:23:15 +0000
commit8489bc23dd6d01a9f33a779255b708bbe486df7e (patch)
tree920144e737f3dc601451c9ba8746d8b7c5fab859 /lib/sqlalchemy/databases
parente630b322f6e776ded26f8bab2e117f1433259a45 (diff)
downloadsqlalchemy-8489bc23dd6d01a9f33a779255b708bbe486df7e.tar.gz
Remove some spurious spaces
Diffstat (limited to 'lib/sqlalchemy/databases')
-rw-r--r--lib/sqlalchemy/databases/firebird.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/sqlalchemy/databases/firebird.py b/lib/sqlalchemy/databases/firebird.py
index 55e3ffc6a..8b7a41aac 100644
--- a/lib/sqlalchemy/databases/firebird.py
+++ b/lib/sqlalchemy/databases/firebird.py
@@ -486,12 +486,16 @@ class FBDialect(default.DefaultDialect):
table.append_constraint(schema.ForeignKeyConstraint(value[0], value[1], name=name))
def do_execute(self, cursor, statement, parameters, **kwargs):
+ # kinterbase does not accept a None, but wants an empty list
+ # when there are no arguments.
cursor.execute(statement, parameters or [])
def do_rollback(self, connection):
+ # Use the retaining feature, that keeps the transaction going
connection.rollback(True)
def do_commit(self, connection):
+ # Use the retaining feature, that keeps the transaction going
connection.commit(True)
@@ -532,11 +536,11 @@ class FBCompiler(sql.compiler.DefaultCompiler):
result = ""
if select._limit:
- result += " FIRST %d " % select._limit
+ result += "FIRST %d " % select._limit
if select._offset:
- result +=" SKIP %d " % select._offset
+ result +="SKIP %d " % select._offset
if select._distinct:
- result += " DISTINCT "
+ result += "DISTINCT "
return result
def limit_clause(self, select):