commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/gnue-common/src/dbdrivers/postgresql DBdri...


From: Jason Cater
Subject: gnue/gnue-common/src/dbdrivers/postgresql DBdri...
Date: Mon, 17 Sep 2001 22:47:04 -0400

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    01/09/17 22:47:04

Modified files:
        gnue-common/src/dbdrivers/postgresql: DBdriver.py 

Log message:
        Added int type conversion problem workaround to schema methods

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/dbdrivers/postgresql/DBdriver.py.diff?cvsroot=OldCVS&tr1=1.17&tr2=1.18&r1=text&r2=text

Patches:
Index: gnue/gnue-common/src/dbdrivers/postgresql/DBdriver.py
diff -u gnue/gnue-common/src/dbdrivers/postgresql/DBdriver.py:1.17 
gnue/gnue-common/src/dbdrivers/postgresql/DBdriver.py:1.18
--- gnue/gnue-common/src/dbdrivers/postgresql/DBdriver.py:1.17  Mon Sep 17 
22:11:17 2001
+++ gnue/gnue-common/src/dbdrivers/postgresql/DBdriver.py       Mon Sep 17 
22:47:04 2001
@@ -49,7 +49,7 @@
     self._recordSetClass = PG_RecordSet
 
 
-  #### NOTE:  Once PyGreSQL's .fetchone() bug is fixed, this method 
+  #### NOTE:  Once PyGreSQL's .fetchone() bug is fixed, this method
   ####   should be deleted!  Also note the line in PG_DataObject.__init__.
   ####   Right now, we are having to preload *ALL* rows from a datasource.
   def _loadNextRecord(self): 
@@ -173,7 +173,7 @@
     statement = "select attname, pg_attribute.oid, typname, " + \
             " attnotnull, atthasdef, atttypmod " + \
             "from pg_attribute, pg_type " + \
-            "where attrelid = %s and " % (parent.id) + \
+            "where attrelid = %d and " % (parent.id) + \
             "pg_type.oid = atttypid and attnum >= 0" + \
             "order by attnum"
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]