This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> 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();
Attachment:
com-mysql-jdbc-3-1-nightly-20030316.zip
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |