summaryrefslogtreecommitdiff
path: root/test/testbase.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/testbase.py')
-rw-r--r--test/testbase.py6
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