On Tuesday 05 August 2003 08:53, Alastair G. Hogge wrote:
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
Right. That's the error. You are trying to pass a Python variable name to
the PostgreSQL backend. Go to the Python page and look up formatting with
the '%' operator.

--
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 8 of 9 | next ›
Discussion Overview
grouppgsql-interfaces @
categoriespostgresql
postedAug 5, '03 at 8:16a
activeAug 6, '03 at 1:23a
posts9
users2
websitepostgresql.org
irc#postgresql

People

Translate

site design / logo © 2022 Grokbase