Compiling MySQL jdbc drivers
Erik Poupaert
erik.poupaert@chello.be
Mon Jun 16 21:44:00 GMT 2003
> I have tried to create a dynamic library for the MySQL JDBC drivers
> using your advices. But I keep running into problems.
I don't know how to do it dynamically. I use
libcom-mysql-jdbc-3-1-nightly-20030316.a and link it into the
executable. Good luck with the .so/.dll approach. Let me know if that
works as well.
> For example I can extract column types correctly, but there's no
> column names.
> I have used MySQL Connector/J 3.1.0-alpha
Up to 2003年03月16日 the connector contains an ugly bug, that prevents
native compilation. I sincerely doubt that it even works with bytecode;
but I haven't tried though...
> I noted that you used a different version, a nightly snapshot.
Yep. I've recovered an email exchange from the mysql mailing list that
said that someone, whose name I can't remember, checked in the hotfix in
CVS at some point.
> Could you put those sources up somewhere for me to get?
> It would be greatly appreciated.
I'll attach them to this mail, since it's a minimally sized tarball. In
order to show my compassion with windows-only users, I've packed them
into a zip file.
> In turn, I would gladly host the sources and write a Makefile for it.
Good idea.
The changes to the vanilla sources only disable SSL; and cut short yet
an otherwise annoying series of dependencies:
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:716
://X javax.net.ssl.SSLSocketFactory sslFact =
(javax.net.ssl.SSLSocketFactory) javax.net.ssl.SSLSocketFactory
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:717
://X .getDefault();
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:718
://X this.mysqlConnection =
sslFact.createSocket(this.mysqlConnection,
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:719
://X this.host, this.port, true);
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:723
://X ((javax.net.ssl.SSLSocket) this.mysqlConnection)
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:724
://X .setEnabledProtocols(new String[] { "TLSv1" });
com-mysql-jdbc-3-1-nightly-20030316/src/com/mysql/jdbc/MysqlIO.java:725
://X ((javax.net.ssl.SSLSocket)
this.mysqlConnection).startHandshake();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: com-mysql-jdbc-3-1-nightly-20030316.zip
Type: application/octet-stream
Size: 258628 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20030616/0d3e1bcb/attachment.obj>
More information about the Java
mailing list