| От | Ingo Luetkebohle |
|---|---|
| Тема | PostgreSQL support for MiddleKit |
| Дата | |
| Msg-id | 20020603163616.GA8145@fargonauten.de обсуждение |
| Список | pgsql-patches |
Hi,
attached is a patch against MiddleKit to provide preliminary support
for PostgreSQL. We are using the patch locally, it seems to work
just fine. Its a bit unpolished but, well,... here it is :-)
Known issues:
- sample data not supported
- requires a patch against the PostgreSQL python bindings
(only 7.2+ supported)
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').
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.
any and all feedback very welcome!
Ingo
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера