undo previous merge because
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 11 Oct 2008 10:47:44 +0000 (10:47 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sat, 11 Oct 2008 10:47:44 +0000 (10:47 +0000)
. I thought we'd need this change but that's not the case
. so no need for another build
. turns out we'd need other changesets as well anyway

PLC/PostgreSQL.py

index 98ef727..4e05639 100644 (file)
@@ -134,15 +134,6 @@ class PostgreSQL:
         cursor.close()
         return self.rowcount
 
-    def next_id(self, table_name, primary_key):
-       sequence = "%(table_name)s_%(primary_key)s_seq" % locals()      
-       sql = "SELECT nextval('%(sequence)s')" % locals()
-       rows = self.selectall(sql, hashref = False)
-       if rows: 
-           return rows[0][0]
-               
-       return None 
-
     def last_insert_id(self, table_name, primary_key):
         if isinstance(self.lastrowid, int):
             sql = "SELECT %s FROM %s WHERE oid = %d" % \