| From: | ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
|---|---|
| To: | "jitendra" <teri(dot)jitendra(at)gmail(dot)com> |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #4087: table creation problem using python |
| Date: | 2008-04-03 10:37:21 |
| Message-ID: | 20080403193154.6E2A.52131E4D@oss.ntt.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
"jitendra" <teri(dot)jitendra(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Dwyer | 2008-04-03 13:15:17 | Re: BUG #4085: No implicit cast after coalesce |
| Previous Message | Zdenek Kotala | 2008-04-03 10:32:26 | Re: BUG #4084: Some DST timezones switche to summer time (one week) later |