Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #4087: table creation problem using python


  • 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: Thu, 03 Apr 2008 19:37:21 +0900
  • Message-id: <20080403193154(dot)6E2A(dot)52131E4D(at)oss(dot)ntt(dot)co(dot)jp>

"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





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group