summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-03-30 00:01:09 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-03-30 00:01:09 +0000
commitdab9abf7893333b7dabaee6de6cddfd93df7169a (patch)
tree8df24ddc7169e39a3cb1ac6dd695199b0a8e9a82 /lib/sqlalchemy/databases/postgres.py
parent6b7bd8fb1575ce47d221e8c9a9cc579abc271c92 (diff)
downloadsqlalchemy-dab9abf7893333b7dabaee6de6cddfd93df7169a.tar.gz
thank you, SVN, for being completely idiotic and non-intutive. rolling back incorrect checkin to trunk
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r--lib/sqlalchemy/databases/postgres.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index e34f4a5cc..43d570070 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -4,13 +4,18 @@
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
-import datetime, string, types, re, random
+import datetime, sys, StringIO, string, types, re
-from sqlalchemy import util, sql, engine, schema, ansisql, exceptions
+import sqlalchemy.util as util
+import sqlalchemy.sql as sql
+import sqlalchemy.engine as engine
import sqlalchemy.engine.default as default
+import sqlalchemy.schema as schema
+import sqlalchemy.ansisql as ansisql
import sqlalchemy.types as sqltypes
import sqlalchemy.exceptions as exceptions
from sqlalchemy.databases import information_schema as ischema
+import re
try:
import mx.DateTime.DateTime as mxDateTime
@@ -267,9 +272,7 @@ class PGDialect(ansisql.ANSIDialect):
if self.server_side_cursors:
# use server-side cursors:
# http://lists.initd.org/pipermail/psycopg/2007-January/005251.html
- ident = "c" + hex(random.randint(0, 65535))[2:]
- print "IDENT:", ident
- return connection.cursor(ident)
+ return connection.cursor('x')
else:
return connection.cursor()