diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-29 23:57:22 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-29 23:57:22 +0000 |
commit | 6b7bd8fb1575ce47d221e8c9a9cc579abc271c92 (patch) | |
tree | f363cefadbc4373db562bf6fb66563c323e1c1fe /test/testbase.py | |
parent | 740733f41080da1913a574e018731b9d6c3e4816 (diff) | |
download | sqlalchemy-6b7bd8fb1575ce47d221e8c9a9cc579abc271c92.tar.gz |
current progress with exec branch
Diffstat (limited to 'test/testbase.py')
-rw-r--r-- | test/testbase.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/testbase.py b/test/testbase.py index 8a1d9ee59..c02b36b52 100644 --- a/test/testbase.py +++ b/test/testbase.py @@ -49,6 +49,7 @@ def parse_argv(): parser.add_option("--enginestrategy", action="store", default=None, dest="enginestrategy", help="engine strategy (plain or threadlocal, defaults to plain)") parser.add_option("--coverage", action="store_true", dest="coverage", help="Dump a full coverage report after running") parser.add_option("--reversetop", action="store_true", dest="topological", help="Reverse the collection ordering for topological sorts (helps reveal dependency issues)") + parser.add_option("--serverside", action="store_true", dest="serverside", help="Turn on server side cursors for PG") (options, args) = parser.parse_args() sys.argv[1:] = args @@ -73,7 +74,7 @@ def parse_argv(): db_uri = 'oracle://scott:tiger@127.0.0.1:1521' elif DBTYPE == 'oracle8': db_uri = 'oracle://scott:tiger@127.0.0.1:1521' - opts = {'use_ansi':False} + opts['use_ansi'] = False elif DBTYPE == 'mssql': db_uri = 'mssql://scott:tiger@SQUAWK\\SQLEXPRESS/test' elif DBTYPE == 'firebird': @@ -94,6 +95,9 @@ def parse_argv(): global with_coverage with_coverage = options.coverage + + if options.serverside: + opts['server_side_cursors'] = True if options.enginestrategy is not None: opts['strategy'] = options.enginestrategy |