Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
mysql-connector-java
mysql-connector-java-5.1.6-disableJDBC4.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mysql-connector-java-5.1.6-disableJDBC4.patch of Package mysql-connector-java
# This patch was taken from Debian package libmysql-java. It disables JDBC 4 support. --- build.xml +++ build.xml @@ -120,9 +120,10 @@ </if> </target> - <target name="init" depends="-compiler-check, -init-copy, -init-no-crypto"> + <target name="init" depends="-init-copy, -init-no-crypto"> <!-- If we're building under cruise control, update ourself --> + <!-- <if> <isset property="cctimestamp"/> <then> @@ -131,7 +132,8 @@ </exec> </then> </if> - + --> + <!-- We need the following for source distributions as there we can't dynamically alter the classpath, and not having this directory present causes the build to fail --> @@ -384,7 +386,7 @@ <section name="common"> <attribute name="Specification-Title" value="JDBC" /> - <attribute name="Specification-Version" value="4.0" /> + <attribute name="Specification-Version" value="3.0" /> <attribute name="Specification-Vendor" value="Sun Microsystems Inc." /> <attribute name="Implementation-Title" value="MySQL Connector/J" /> <attribute name="Implementation-Version" value="${full.version}" /> @@ -700,7 +702,7 @@ </target> - <target name="compile" depends="init, compile-driver, compile-testsuite, compile.integration"> + <target name="compile" depends="init, compile-driver, compile.integration"> </target> <target name="compile-trace" depends="init, compile-driver-trace"> @@ -708,7 +710,7 @@ <!-- Compiles the driver itself --> - <target name="compile-driver" depends="compile-driver-jdbc3, compile-driver-jdbc4" /> + <target name="compile-driver" depends="compile-driver-jdbc3" /> <target name="compile-driver-jdbc3" depends="init, -clean-output"> <javac sourcepath="" srcdir="${buildDir}/${fullProdName}" @@ -734,6 +736,8 @@ fork="yes" executable="${com.mysql.jdbc.java6.javac}" compiler="modern" + source="1.5" + tartget="1.5" sourcepath="" srcdir="${buildDir}/${fullProdName}" bootclasspath="${com.mysql.jdbc.java6.rtjar}"> <include name="**/JDBC4*.java" /> --- src/com/mysql/jdbc/Util.java +++ src/com/mysql/jdbc/Util.java @@ -100,7 +100,7 @@ try { Class.forName("java.sql.NClob"); - isJdbc4 = true; + isJdbc4 = false; } catch (Throwable t) { isJdbc4 = false; } @@ -590,4 +590,4 @@ return extensionList; } -} \ No newline at end of file +}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor