| От | Alastair G. Hogge |
|---|---|
| Тема | Re: Seeking PyGreSQL help |
| Дата | |
| Msg-id | 200308061123.31792.agh@tpg.com.au обсуждение |
| Ответ на | Seeking PyGreSQL help ("Alastair G. Hogge" <agh@tpg.com.au>) |
| Список | pgsql-interfaces |
On Wednesday, 06 August 2003 02:44, D'Arcy J.M. Cain wrote:
> 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.
Ah I see. Thanks for that.
All is working ok now. :-)
-Al
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера