Re: cannot insert a timestamp

Al Niessner <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <1244590497.3982.58.camel@charon>
self.__cursor.execute (command, value)

Building up the command to match the dictionary 'value' is pretty
complicated because it handles more than one table. However it is the
usual building a string thing. Plus all the same code works with psycopg
v1. To switch between them, I just change the import and yank the _o
from the timestamp. No other changes are required.

On Wed, 2009-06-10 at 00:44 +0200, Federico Di Gregorio wrote:
> Il giorno mar, 09/06/2009 alle 14.42 -0700, Al Niessner ha scritto:
> > I have been using psycopg v1 for a little why and am trying to
> > transition my code to 2.0.8 (the version that synaptic grabs in Ubuntu
> > Jaunty). The timestamp stuff is kill me though.
> 
> Can you please show use the .execute() call you're using for the query?
> 
> federico
> 
> _______________________________________________
> Psycopg mailing list
> Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
> http://lists.initd.org/mailman/listinfo/psycopg
-- 
Al Niessner

I have never found the companion that was so companionable as solitude.
- From Walden by Henry David Thoreau

The universe is indifferent, and life is brutal; however, it is man's
choice of behavior that makes them malevolent rather than benevolent.

Some will fall in love with life and drink it from a fountain
That is pouring like an avalanche coming down the mountain.
- From the song Pepper by the Butthole Surfers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.