Hi!

On Thu, Oct 27, 2005 at 03:08:18PM +0400, Oleg Broytmann wrote:
>    psycopg1 does not quote datetime and mxDateTime instances

   Found in psycopg2 wiki - http://initd.org/tracker/psycopg/wiki/Migration :

Quoting of date and time values

   In Psycopg 1 you had to use something along the lines of

 curs.execute('...%s...', psycopg.TimestampFromMx(aTimestamp))

   where aTimestamp is a DateTime object. Psycopg 2 makes this easier for
you:

 curs.execute('...%s...', aTimestamp)

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to