Oracle 5.0 Reference Manual page 2072

Table of Contents

Advertisement

exception
• convertToNull, which returns
• round, which rounds the date to the nearest closest value which is 0001-01-01.
Starting with Connector/J 3.1.7,
using
noDatetimeStringSync=true
unaltered all-zero value as a String. Note that this also precludes using any time zone conversions,
therefore the driver will not allow you to enable
same time.
• New SQLState Codes: Connector/J 3.1 uses SQL:1999 SQLState codes returned by the MySQL
server (if supported), which are different from the legacy X/Open state codes that Connector/J
3.0 uses. If connected to a MySQL server older than MySQL-4.1.0 (the oldest version to return
SQLStates as part of the error code), the driver will use a built-in mapping. You can revert to the old
mapping by using the configuration property useSqlStateCodes=false.
• ResultSet.getString(): Calling
the address of the
values have no character set, so they cannot be converted to java.lang.Strings without
BLOB
data loss or corruption.
To store strings in MySQL with LOB behavior, use one of the
as a java.sql.Clob.
• Debug builds: Starting with Connector/J 3.1.8 a debug build of the driver in a file named
connector-java-version-bin-g.jar
named mysql-connector-java-version-bin.jar.
Starting with Connector/J 3.1.9, we do not ship the
in the JAR archives that ship with the driver.
Do not use the debug build of the driver unless instructed to do so when reporting a problem or bug,
as it is not designed to be run in production environments, and will have adverse performance impact
when used. The debug binary also depends on the Aspect/J runtime library, which is located in the
src/lib/aspectjrt.jar
20.3.3.4. Installing from the Development Source Tree
To install MySQL Connector/J from the development source tree, make sure that you have the
following prerequisites:
• A Bazaar client, to check out the sources from our Launchpad repository (available from
bazaar-vcs.org/).
• Apache Ant version 1.7 or newer (available from http://ant.apache.org/).
• JDK 1.4.2 or later. Although MySQL Connector/J can be be used with older JDKs, compiling it from
source requires at least JDK 1.4.2. To build Connector/J 5.1 requires JDK 1.6.x and an older JDK
such as JDK 1.5.x; point your
To check out and compile a specific branch of MySQL Connector/J, follow these steps:
1. Check out the latest code from the branch that you want with one of the following commands.
Connector/J Installation
(the default), which throws an SQLException with an SQLState of S1009.
NULL
ResultSet.getString()
ResultSet.getString()
array that represents it, instead of a
byte[]
file that comes with the Connector/J distribution.
Caution
Read this section only if you are interested in helping us test our new code. To
just get MySQL Connector/J up and running on your system, use a standard
binary release distribution.
JAVA_HOME
instead of the date.
can be decoupled from this behavior
(the default value is false) so that you can retrieve the
noDatetimeStringSync
TEXT
is shipped alongside the normal binary jar file that is
files unbundled, they are only available
.class
environment variable at the older installation.
2052
and
useTimezone
on a
column will now return
BLOB
representation of the BLOB.
String
types, which the driver will treat
at the
mysql-
http://

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents