getting fetching messages...
"Alexander Blüm" <[email protected]> Tue, 30 Mar 2004 21:19:06 +0200 (MEST)
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
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
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click