From: <mai...@gm...> - 2004-03-30 19:19:15
|
hello, I almost pulled out all my hair over this. I have a simple INSERT INTO for a couple of values. there is a trigger that skips the insertion and spits out an INFO line telling me that this record is already in the table (_if_ it already is, otherwise the trigger returns the to-be-inserted-row and stays quiet) I just want python to get these INFO-lines right after the query: 'INFO: record already in table: text7112343o' this doesn't work: ... dbcon.query("BEGIN") for bla in dataarray: insertstring="INSERT INTO testtable VALUES ('"+bla+"')" dbcon.query(insertstring) print "### ", dbcon.notifies() dbcon.query("COMMIT") ... Traceback (most recent call last): File "import1.py", line 22, in ? print "### ", dbcon.notifies() AttributeError: notifies ...why...? any help's greatly appreciated. alex. -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz |