/[papo]/gnue/common/src/dbdrivers/_pgsql/DBdriver.py
ViewVC logotype

Diff of /gnue/common/src/dbdrivers/_pgsql/DBdriver.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12.2.8 by apronotti, Fri May 30 18:00:01 2003 UTC revision 1.12.2.9 by apronotti, Thu Jun 5 22:11:59 2003 UTC
# Line 323  class PGSQL_DataObject_Object(PGSQL_Data Line 323  class PGSQL_DataObject_Object(PGSQL_Data
323        
324      #To get the names you can start a second query like:      #To get the names you can start a second query like:
325    
326      tables = self.table.replace(' ','').split(',')      tables = map(lambda x: x.strip(), self.table.split(','))
327        #self.table.replace(' ','').split(',')
328      self._primaryKeys = {}      self._primaryKeys = {}
329      for table in tables:      for table in tables:
330        statement = "SELECT indkey FROM pg_index, pg_class c WHERE indrelid=c.oid AND indisprimary AND relname='%s' " \        statement = "SELECT indkey FROM pg_index, pg_class c WHERE indrelid=c.oid AND indisprimary AND relname='%s' " \

Legend:
Removed from v.1.12.2.8  
changed lines
  Added in v.1.12.2.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26