Re: BUG #4087: table creation problem using python

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: BUG #4087: table creation problem using python
Дата
Msg-id 20080403193154.6E2A.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на BUG #4087: table creation problem using python  ("jitendra" <teri.jitendra@gmail.com>)
Список pgsql-bugs
"jitendra" <teri.jitendra@gmail.com> wrote:

> I'm jitendra from delhi(India),I've a problem with table creation using
> python....script executed but there's nothing happened.
> the program written in python is...

You need to add conn.commit() here:

>        cur.execute("create table ph2 (nm varchar, ph varchar)")
         conn.commit()
>        print "table created....."


An auto-commit feature is initially off on databases supporting
transactions. See http://www.python.org/dev/peps/pep-0249/ .

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: BUG #4084: Some DST timezones switche to summer time (one week) later
Следующее
От: Jeff Dwyer
Дата:
Сообщение: Re: BUG #4085: No implicit cast after coalesce