Oracle 5.0 Reference Manual page 2096

Table of Contents

Advertisement

MySQL does not support SQL cursors, and the JDBC driver doesn't emulate them, so
setCursorName()
Connector/J 5.1.3 and later include two additional methods:
setLocalInfileInputStream()
send data to the MySQL server for a
FileInputStream
statement.
This stream will be read to completion upon execution of a
statement, and will automatically be closed by the driver, so it needs to be reset before each call
to
execute*()
DATA LOCAL
If this value is set to NULL, the driver will revert to using a
URLInputStream
getLocalInfileInputStream()
data in response to a
This method returns
setLocalInfileInputStream().
20.3.5.3. Java, JDBC and MySQL Types
MySQL Connector/J is flexible in the way it handles conversions between MySQL data types and Java
data types.
In general, any MySQL data type can be converted to a java.lang.String, and any numeric type
can be converted to any of the Java numeric types, although round-off, overflow, or loss of precision
may occur.
Starting with Connector/J 3.1.0, the JDBC driver issues warnings or throws
exceptions as is required by the JDBC specification unless the connection was configured not to do so
by using the property
Connector/J (JDBC) Reference
Note
The MySQL statement
implement Statement.cancel()) is non-deterministic; thus, avoid the
use of
Statement.cancel()
next query issued will be killed by the server. This race condition is guarded
against as of Connector/J 5.1.18.
has no effect.
or
URLInputStream
that would cause the MySQL server to request data to fulfill the request for
INFILE.
as required.
LOAD DATA LOCAL INFILE
if no such stream has been set using
NULL
Note
All
types return
TEXT
Types.LONGVARCHAR
values (65535, 255, 16777215, and 2147483647 respectively) with
returning -1. This behavior is intentional even though
getColumnType()
does not fall, regarding to its size, within the
TINYTEXT
category. This is to avoid different handling inside the same base type. And
returns
getColumnType()
TEXT, which is similar to BLOB.
Also note that
getColumnTypeName()
returns Types.LONGVARCHAR, because
getColumnType()
designated column database-specific name for this type.
jdbcCompliantTruncation
(which is what the driver uses to
KILL QUERY
if possible. If no query is in process, the
sets an
InputStream
LOAD DATA LOCAL INFILE
that represents the path given as an argument to the
LOAD DATA LOCAL INFILE
FileInputStream
returns the
InputStream
statement.
because the internal server handling is of type
-1
will return
and setting it to false.
2076
instance that will be used to
statement rather than a
or
instance that will be used to send
with different
getPrecision()
LONGVARCHAR
even though
VARCHAR
VARCHAR
DataTruncation
LOAD
is the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents