[Top][All Lists]

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

[Gnumed-devel] re: create_identity again

From: syan tan
Subject: [Gnumed-devel] re: create_identity again
Date: Thu, 20 Nov 2003 11:31:06 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

Ok , well this worked upto the return statement, but data is 1 and not a list of tuples. I remember that was why I used insert int v_basic_person instead, because it did work. Is there something wrong with my copy of gmPG, or does run_commit only return true/false flag ? cmd1 = "insert into identity(gender, dob) values('?', CURRENT_TIMESTAMP)"
       cmd2 = "select currval('identity_id_seq')"

       data = gmPG.run_commit('personalia', [(cmd1, []), (cmd2, [])])
       if data is None:
               return None
       print data
       return data[0][0]

reply via email to

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