On Fri, Feb 22, 2013 at 10:27 AM, wrote:
cursor_to.execute("CREATE TABLE foo (id serial PRIMARY KEY);")
Like many things, it's silent when everything works. As MRAB
suggested, you probably need to commit before the changes become
visible; unlike certain other database engines, PostgreSQL ac
I'd actually forgotten about commit, thanks!
I'll have another go with this in mind.
--
http://mail.python.org/mailman/listinfo/python-list
On 2013-02-21 23:27, andydtay...@gmail.com wrote:
Hi,
I'm trying to use psycopg2 but having some issues. Would it be possible to get
some pointers? I seem unable to execute any SQL statements.
So here are my database tables before (and after) I try to do anything:
postgres=# \c
You are now
Hi,
I'm trying to use psycopg2 but having some issues. Would it be possible to get
some pointers? I seem unable to execute any SQL statements.
So here are my database tables before (and after) I try to do anything:
postgres=# \c
You are now connected to database "postgres" as user "postgres"