Author: paul
Date: 2006-04-19 17:01:21 +0200 (Wed, 19 Apr 2006)
New Revision: 1866
Log:
r9568@frost: paul | 2006-04-19 09:57:50 -0500
MYSQL_BIND.error is a pointer. (Bug#17460)
Modified:
trunk/
trunk/refman-5.0/apis.xml
trunk/refman-5.1/apis.xml
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- 4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:6745
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:9563
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:4505
+ 4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:6745
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:9568
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:4505
Modified: trunk/refman-5.0/apis.xml
===================================================================
--- trunk/refman-5.0/apis.xml 2006-04-19 14:27:17 UTC (rev 1865)
+++ trunk/refman-5.0/apis.xml 2006-04-19 15:01:21 UTC (rev 1866)
@@ -8409,17 +8409,19 @@
<listitem>
<para>
- <literal>my_bool error</literal>
+ <literal>my_bool *error</literal>
</para>
<para>
- For output, this member is used output to report data
- truncation errors. Truncation reporting must be enabled
- by calling <literal>mysql_options()</literal> with the
- <literal>MYSQL_REPORT_DATA_TRUNCATION</literal> option.
- When enabled, <literal>mysql_stmt_fetch()</literal>
- returns <literal>MYSQL_DATA_TRUNCATED</literal> and
- <literal>error</literal> is true in the
+ For output, this member is a pointer to a
+ <literal>my_bool</literal> variable to be used output to
+ report data truncation errors. Truncation reporting must
+ be enabled by calling <literal>mysql_options()</literal>
+ with the <literal>MYSQL_REPORT_DATA_TRUNCATION</literal>
+ option. When enabled,
+ <literal>mysql_stmt_fetch()</literal> returns
+ <literal>MYSQL_DATA_TRUNCATED</literal> and
+ <literal>*error</literal> is true in the
<literal>MYSQL_BIND</literal> structures for parameters
in which truncation occurred. Truncation indicates loss
of sign or significant digits, or that a string was too
@@ -10563,6 +10565,7 @@
int int_data;
char str_data[STRING_SIZE];
my_bool is_null[4];
+my_bool error[4];
/* Prepare a SELECT query to fetch data from test_table */
stmt = mysql_stmt_init(mysql);
@@ -10626,6 +10629,7 @@
bind[0].buffer= (char *)&int_data;
bind[0].is_null= &is_null[0];
bind[0].length= &length[0];
+bind[0].error= &error[0];
/* STRING COLUMN */
bind[1].buffer_type= MYSQL_TYPE_STRING;
@@ -10633,18 +10637,21 @@
bind[1].buffer_length= STRING_SIZE;
bind[1].is_null= &is_null[1];
bind[1].length= &length[1];
+bind[1].error= &error[1];
/* SMALLINT COLUMN */
bind[2].buffer_type= MYSQL_TYPE_SHORT;
bind[2].buffer= (char *)&small_data;
bind[2].is_null= &is_null[2];
bind[2].length= &length[2];
+bind[2].error= &error[2];
/* TIMESTAMP COLUMN */
bind[3].buffer_type= MYSQL_TYPE_TIMESTAMP;
bind[3].buffer= (char *)&ts;
bind[3].is_null= &is_null[3];
bind[3].length= &length[3];
+bind[3].error= &error[3];
/* Bind the result buffers */
if (mysql_stmt_bind_result(stmt, bind))
Modified: trunk/refman-5.1/apis.xml
===================================================================
--- trunk/refman-5.1/apis.xml 2006-04-19 14:27:17 UTC (rev 1865)
+++ trunk/refman-5.1/apis.xml 2006-04-19 15:01:21 UTC (rev 1866)
@@ -8278,17 +8278,19 @@
<listitem>
<para>
- <literal>my_bool error</literal>
+ <literal>my_bool *error</literal>
</para>
<para>
- For output, this member is used output to report data
- truncation errors. Truncation reporting must be enabled
- by calling <literal>mysql_options()</literal> with the
- <literal>MYSQL_REPORT_DATA_TRUNCATION</literal> option.
- When enabled, <literal>mysql_stmt_fetch()</literal>
- returns <literal>MYSQL_DATA_TRUNCATED</literal> and
- <literal>error</literal> is true in the
+ For output, this member is a pointer to a
+ <literal>my_bool</literal> variable to be used output to
+ report data truncation errors. Truncation reporting must
+ be enabled by calling <literal>mysql_options()</literal>
+ with the <literal>MYSQL_REPORT_DATA_TRUNCATION</literal>
+ option. When enabled,
+ <literal>mysql_stmt_fetch()</literal> returns
+ <literal>MYSQL_DATA_TRUNCATED</literal> and
+ <literal>*error</literal> is true in the
<literal>MYSQL_BIND</literal> structures for parameters
in which truncation occurred. Truncation indicates loss
of sign or significant digits, or that a string was too
@@ -10377,6 +10379,7 @@
int int_data;
char str_data[STRING_SIZE];
my_bool is_null[4];
+my_bool error[4];
/* Prepare a SELECT query to fetch data from test_table */
stmt = mysql_stmt_init(mysql);
@@ -10440,6 +10443,7 @@
bind[0].buffer= (char *)&int_data;
bind[0].is_null= &is_null[0];
bind[0].length= &length[0];
+bind[0].error= &error[0];
/* STRING COLUMN */
bind[1].buffer_type= MYSQL_TYPE_STRING;
@@ -10447,18 +10451,21 @@
bind[1].buffer_length= STRING_SIZE;
bind[1].is_null= &is_null[1];
bind[1].length= &length[1];
+bind[1].error= &error[1];
/* SMALLINT COLUMN */
bind[2].buffer_type= MYSQL_TYPE_SHORT;
bind[2].buffer= (char *)&small_data;
bind[2].is_null= &is_null[2];
bind[2].length= &length[2];
+bind[2].error= &error[2];
/* TIMESTAMP COLUMN */
bind[3].buffer_type= MYSQL_TYPE_TIMESTAMP;
bind[3].buffer= (char *)&ts;
bind[3].is_null= &is_null[3];
bind[3].length= &length[3];
+bind[3].error= &error[3];
/* Bind the result buffers */
if (mysql_stmt_bind_result(stmt, bind))
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r1866 - in trunk: . refman-5.0 refman-5.1 | paul | 19 Apr |