Hi,

I try to develop a SDBC driver for Ingres and OOo, as the SDBC-ODBC and the 
JDBC-ODBC driver both support the features of the com.sun.start.sdbc.Driver, 
but not those of the com.sun.start.sdbcx.Driver service. What I like to do, is 
to implement a SDBC driver similar to the one in the OOo source code for MySQL, 
which uses the functionality of the SDBC-ODBC or the SDBC-JDBC driver and add 
features of the the com.sun.start.sdbcx.Driver service as far as possible.

Currently I managed to compile the driver skeleton from the OOo SDK and install 
the resulting component in OOo, which gives me an entry in the available 
drivers list, but of couse no real driver functionality. I already tried to 
simply copy the source code of the SDBC driver for MySQL and to adapt it, but I 
was not able to compile the source code, because I use the OOo SDK, but the 
source code includes some header files from the OOo source itself and just 
adding them to the include path or copying them to the OOo SDK gives a missing 
external symbol, as I do not know what lib is to link and how to do this. 

Could you give me some advice how to manage this problem, please? Do I need to 
compile the whole OOo source code, besides using the OOo SDK or should I try 
something totally different? 

As I am a newbie to UNO programming I also have some questions concerning the 
implementation of the SDBC driver for MySQL. So far I can see the the SDBC-ODBC 
or the JDBC-ODBC driver is loaded when the connect() Method is invoked, but I 
don't  understand why the XUnoTunnel and the OMetaConnection object is needed 
in this Method. I tried to set up a connection omitting all steps concerning 
the XUnoTunnel and the OMetaConnection object, but it didn't work, so this 
seems to be something essential for establishing a connection that way. Could 
you please give me some hints on this? I also don't understand why there is a 
map for multiple JDBC drives from different driver classes. Shouldn't there 
only be one JDBC driver from one driver class loaded by the SDBC-JDBC driver at 
any time?

Regards,
Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to