William ZHANG wrote:

"Shachar Shemesh" <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED]


Andreas Pflug wrote:



I wonder if this could be implemented as a wrapper around libpq. This
way, the OLEDB driver would benefit from a proven piece of software.

Regards,
Andreas


That's what I'm doing. I'm not sure why other drivers didn't do that as
well (maybe there was no native Windows port of libpq at the time?).



AFAIK, rely on libpq is a fast way but not always convenient.


Seems like more convinent than hacking the client/server protocol myself. I may come up to a wall later on, and then I may reconsider.

OLEDB has many features borrowed from ODBC, and it is a
substitute for ODBC. Microsoft is now making ODBC obsolete and
advocating OLEDB instead. You'd better read pgodbc's source
code, too.



I did some of that, and did some ODBC hacking too (very little). The fact that ODBC uses it's own protocol implementation, I think, is a mistake. There are places where some intervention is going to be unavoidable, I'm afraid, but that has nothing to do with what protocol to use for communicating with the back end. If Postgres doesn't support writeable cursors, then it doesn't support writeable cursors. One has to emulate them. I will defenitely use some borrowing from pgsqlODBC (the main reason my OLE DB is LGPL was so I can do that).

--
Shachar Shemesh
Lingnu Open Systems Consulting
http://www.lingnu.com/



---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to