Oracle 5.0 Reference Manual page 2214

Table of Contents

Advertisement

is a pointer to a boolean scalar, not a boolean scalar, to provide flexibility in how you
is_null
specify
values:
NULL
• If your data values are always NULL, use
you bind the column. The other
• If your data values are always
members appropriately for the variable you are binding.
• In all other cases, set the other members appropriately and set
variable. Set that variable's value to true or false appropriately between executions to
my_bool
indicate whether the corresponding data value is
For output, when you fetch a row, MySQL sets the value pointed to by
according to whether the result set column value returned from the statement is or is not NULL.
my_bool is_unsigned
This member applies for C variables with data types that can be
int, int,
long long
and false otherwise. For example, if you bind a
unsigned
specify a type code of
unsigned char
char, it is not defined whether it is signed or unsigned, so it is best to be explicit about signedness
by using
signed char
applies only to the C language variable on the client side. It indicates nothing
is_unsigned
about the signedness of the corresponding SQL value on the server side. For example, if you use
an
variable to supply a value for a
int
false because
int
a
column,
BIGINT
MySQL performs the proper conversion between signed and unsigned values in both directions,
although a warning occurs if truncation results.
my_bool *error
For output, set this member to point to a
for the parameter stored there after a row fetching operation. When truncation reporting is
enabled,
mysql_stmt_fetch()
the
MYSQL_BIND
loss of sign or significant digits, or that a string was too long to fit in a column. Truncation
reporting is enabled by default, but can be controlled by calling
MYSQL_REPORT_DATA_TRUNCATION
MYSQL_TIME
This structure is used to send and receive DATE, TIME, DATETIME, and
directly to and from the server. Set the
and set the
buffer_type
(MYSQL_TYPE_TIME, MYSQL_TYPE_DATE, MYSQL_TYPE_DATETIME, MYSQL_TYPE_TIMESTAMP).
The
structure contains the members listed in the following table.
MYSQL_TIME
Member
unsigned int year
unsigned int month
unsigned int day
C API Prepared Statement Data Structures
MYSQL_BIND
NULL, set
NOT
int). Set
is_unsigned
MYSQL_TYPE_TINY
instead, the type code is the same but
or
unsigned
char.)
BIGINT UNSIGNED
is a signed type. If you use an
should be true because
is_unsigned
returns
structures for parameters in which truncation occurred. Truncation indicates
option. The
buffer
member of a
MYSQL_BIND
Description
The year
The month of the year
The day of the month
2194
MYSQL_TYPE_NULL
members, including is_null, do not matter.
is_null = (my_bool*)
or
NULL
NOT
to true if the variable pointed to by
signed char
and set
is_unsigned
is_unsigned
column,
unsigned int
unsigned int
variable to have truncation information
my_bool
MYSQL_DATA_TRUNCATED
member was added in MySQL 5.0.3.
error
member to point to a
structure to one of the temporal types
as the
buffer_type
0, and set the other
to the address of a
is_null
NULL, respectively.
to true or false
is_null
(char,
unsigned
short
buffer
variable to buffer,
to false. If you bind an
should be true. (For
should be
is_unsigned
variable to supply a value for
is an unsigned type.
and
is true in
*error
with the
mysql_options()
data
TIMESTAMP
structure,
MYSQL_TIME
value when
is

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents