Re: Seeking PyGreSQL help - Mailing list pgsql-interfaces

From Alastair G. Hogge
Subject Re: Seeking PyGreSQL help
Date
Msg-id 200308052253.37438.agh@tpg.com.au
Whole thread Raw
In response to Seeking PyGreSQL help  ("Alastair G. Hogge" <agh@tpg.com.au>)
Responses Re: Seeking PyGreSQL help  ("D'Arcy J.M. Cain" <darcy@PyGreSQL.org>)
List pgsql-interfaces
On Tuesday, 05 August 2003 22:45, D'Arcy J.M. Cain wrote:
> On Tuesday 05 August 2003 08:41, Alastair G. Hogge wrote:
> > "db.query("INSERT INTO test VALUES (temp, 'none')")" is the line causing
> > the problem. The internel server error from apache.
>
> What happens when you try doing that line directly into psql?  I don't know
> what your schema for test is but perhaps what you want is this:
>
> db.query("INSERT INTO test VALUES (temp, NULL)")
In pyhton?
temp = "hello"
>>> db.query("INSERT INTO test VALUES (temp, NULL)")
Traceback (most recent call last): File "<stdin>", line 1, in ?
_pg.error: ERROR:  Attribute "temp" not found



pgsql-interfaces by date:

Previous
From: "Alastair G. Hogge"
Date:
Subject: Re: Seeking PyGreSQL help
Next
From: Christoph Haller
Date:
Subject: Re: unicode and libpq