Re: Seeking PyGreSQL help

From: "Alastair G(dot) Hogge" <agh(at)tpg(dot)com(dot)au>
To: darcy(at)PyGreSQL(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Seeking PyGreSQL help
Date: 2003-08-05 12:53:37
Message-ID: 200308052253.37438.agh@tpg.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Christoph Haller 2003-08-05 15:03:59 Re: unicode and libpq
Previous Message D'Arcy J.M. Cain 2003-08-05 12:45:23 Re: Seeking PyGreSQL help