]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] Added "no_parameters=True" execution
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Feb 2012 01:07:44 +0000 (20:07 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Feb 2012 01:07:44 +0000 (20:07 -0500)
commitdf15546cb8903e0eef0182faa0eda1691bf6bac8
treee04c2e4d7d0156a176cd5d950792b1a3281a674d
parentf37aa86df8fa885a5d098930c8a444b96f374f60
  - [feature] Added "no_parameters=True" execution
    option for connections.   If no parameters
    are present, will pass the statement
    as cursor.execute(statement), thereby invoking
    the DBAPIs behavior when no parameter collection
    is present; for psycopg2 and mysql-python, this
    means not interpreting % signs in the string.
    This only occurs with this option, and not
    just if the param list is blank, as otherwise
    this would produce inconsistent behavior
    of SQL expressions that normally escape percent
    signs (and while compiling, can't know ahead of
    time if parameters will be present in
    some cases).  [ticket:2407]
CHANGES
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
test/engine/test_execute.py