Il lun, 2002-06-03 alle 18:36, Ingo Luetkebohle ha scritto:

> The reason that a patch against the PostgreSQL python bindings is required
> is that MiddleKit makes uses of a database-assigned ID for newly
> inserted database objects.  It retrieves this through a MySQL-specific
> server function.  Postgres has an equivalent in the 'C' glue for its
> binding but this equivalent is not exposed by the python-part of the driver.
> (its called 'lastoid').

then just use psycopg, that has a lastoid() mothod on cursors. :)

> The second reason is that we put mxDateTime support into the python
> part of the Postgres driver so that some assumptions MiddleKit makes
> about the type of the returned data of datetime columns hold.  I suppose 
> there is a way to do that little bit of processing in the MiddleKit patch 
> directly and if anyone can point me in the right direction there, I would 
> truly appreciate it.

psycopg has support for custom (pythonic) typecast objects from postgres
to python. i don't have the time to work on middlekit at now, but why
don't you try this adapter. some people say it is better than the
builtin one. (ok, ok, i am clearly partial on it...)

-- 
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact        [EMAIL PROTECTED]
INIT.D Developer                                           [EMAIL PROTECTED]
  Those who do not study Lisp are doomed to reimplement it. Poorly.
                                     -- from Karl M. Hegbloom .signature

Attachment: signature.asc
Description: PGP signature

Reply via email to