[SQL-CVS] SQLObject/SQLObject DBConnection.py,1.18,1.19
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-17 03:42:59
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv767 Modified Files: DBConnection.py Log Message: Forgot to use idName for sequence (PG) Index: DBConnection.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/DBConnection.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** DBConnection.py 11 Apr 2003 16:26:39 -0000 1.18 --- DBConnection.py 17 Apr 2003 03:42:56 -0000 1.19 *************** *** 437,441 **** def _queryInsertID(self, conn, table, idName, names, values): c = conn.cursor() ! c.execute('SELECT nextval(\'%s_id_seq\')' % table) (id,) = c.fetchone() names.append(idName) --- 437,441 ---- def _queryInsertID(self, conn, table, idName, names, values): c = conn.cursor() ! c.execute('SELECT nextval(\'%s_%s_seq\')' % (idName, table)) (id,) = c.fetchone() names.append(idName) |