Oracle 5.0 Reference Manual page 1945

Table of Contents

Advertisement

params Object[] args
This is a list of objects that depends on the MySQL event type, id. However, the first parameter
passed using this list is always the driver id. The driver id is a unique number that is incremented each
time the connector is opened. This enables groups of queries on the same connection to be identified.
The parameters that follow driver id depend on the MySQL event id, and are as follows:
MySQL-specific event type
ConnectionOpened
ConnectionClosed
QueryOpened
ResultOpened
ResultClosed
QueryClosed
StatementPrepared
StatementExecuted
StatementClosed
NonQuery
UsageAdvisorWarning
Warning
Error
This information will allow you to create custom trace listeners that can actively monitor the MySQL-
specific events.
20.2.5.15. Binary/Nonbinary Issues
There are certain situations where MySQL will return incorrect metadata about one or more columns.
More specifically, the server will sometimes report that a column is binary when it is not and vice versa.
In these situations, it becomes practically impossible for the connector to be able to correctly identify
the correct metadata.
Some examples of situations that may return incorrect metadata are:
• Execution of
only hold string data.
• When a temporary table is used to process a resultset, some columns may be returned with incorrect
binary flags.
• Some server functions such
With the availability of
metadata returned by the server. However, we are aware that some existing applications may break
with this change, so we are creating a connection string option to enable or disable it. By default,
Connector/Net 5.1 respects the binary flags returned by the server. You might need to make small
changes to your application to accommodate this change.
In the event that the changes required to your application would be too large, adding
binary flags=false'
column that is marked as string, regardless of binary flags, will be returned as string. Only columns that
are specifically marked as a
20.2.5.16. Character Set Considerations for Connector/Net
Connector/Net Programming
PROCESSLIST. Some of the columns will be returned as binary even though they
SHOW
DATE_FORMAT
and
BINARY
VARBINARY
to your connection string causes the connector to use the prior behavior: any
will be returned as BLOB.
BLOB
Arguments (params Object[] args)
Connection string
No additional parameters
mysql server thread id, query text
field count, affected rows (-1 if select), inserted id (-1 if select)
total rows read, rows skipped, size of resultset in bytes
No additional parameters
prepared sql, statement id
statement id, mysql server thread id
statement id
Varies
usage advisor flag. NoIndex = 1, BadIndex = 2, SkippedRows =
3, SkippedColumns = 4, FieldConversion = 5.
level, code, message
error number, error message
will incorrectly return the column as binary.
data types, it is important that we respect the
1925
'respect

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents