Author: paul
Date: 2006-04-19 19:13:13 +0200 (Wed, 19 Apr 2006)
New Revision: 1869
Log:
r4544@kite-hub: paul | 2006-04-19 11:22:05 -0500
MYSQL_DATA_TRUNCATED reporting is enabled by default (not disabled).
(Bug#16288)
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:9568
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:4543
+ 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:4544
Modified: trunk/refman-5.0/apis.xml
===================================================================
--- trunk/refman-5.0/apis.xml 2006-04-19 17:12:52 UTC (rev 1868)
+++ trunk/refman-5.0/apis.xml 2006-04-19 17:13:13 UTC (rev 1869)
@@ -5663,7 +5663,7 @@
<entry><literal>my_bool *</literal></entry>
<entry>Enable or disable reporting of data truncation errors for prepared
statements via <literal>MYSQL_BIND.error</literal>.
- (Default: disabled) Added in 5.0.3.</entry>
+ (Default: enabled) Added in 5.0.3.</entry>
</row>
<row>
<entry><literal>MYSQL_SECURE_AUTH</literal></entry>
@@ -8429,11 +8429,13 @@
For output, set this member to point to a
<literal>my_bool</literal> variable to have truncation
information for the parameter stored there after a row
- fetching operation. 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
+ fetching operation. (Truncation reporting is enabled by
+ default, but can be controlled by calling
+ <literal>mysql_options()</literal> with the
+ <literal>MYSQL_REPORT_DATA_TRUNCATION</literal> option.)
+ When truncation reporting is 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
@@ -10442,9 +10444,10 @@
</informaltable>
<para>
- <literal>MYSQL_DATA_TRUNCATED</literal> is not returned unless
- truncation reporting is enabled with
- <literal>mysql_options()</literal>. To determine which
+ <literal>MYSQL_DATA_TRUNCATED</literal> is returned when
+ truncation reporting is enabled. (Reporting is enabled by
+ default, but can be controlled with
+ <literal>mysql_options()</literal>.) To determine which
parameters were truncated when this value is returned, check
the <literal>error</literal> members of the
<literal>MYSQL_BIND</literal> parameter structures.
Modified: trunk/refman-5.1/apis.xml
===================================================================
--- trunk/refman-5.1/apis.xml 2006-04-19 17:12:52 UTC (rev 1868)
+++ trunk/refman-5.1/apis.xml 2006-04-19 17:13:13 UTC (rev 1869)
@@ -5522,7 +5522,7 @@
<entry><literal>my_bool *</literal></entry>
<entry>Enable or disable reporting of data truncation errors for prepared
statements via <literal>MYSQL_BIND.error</literal>.
- (Default: disabled.)</entry>
+ (Default: enabled.)</entry>
</row>
<row>
<entry><literal>MYSQL_SECURE_AUTH</literal></entry>
@@ -8298,11 +8298,13 @@
For output, set this member to point to a
<literal>my_bool</literal> variable to have truncation
information for the parameter stored there after a row
- fetching operation. 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
+ fetching operation. (Truncation reporting is enabled by
+ default, but can be controlled by calling
+ <literal>mysql_options()</literal> with the
+ <literal>MYSQL_REPORT_DATA_TRUNCATION</literal> option.)
+ When truncation reporting is 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
@@ -10256,9 +10258,10 @@
</informaltable>
<para>
- <literal>MYSQL_DATA_TRUNCATED</literal> is not returned unless
- truncation reporting is enabled with
- <literal>mysql_options()</literal>. To determine which
+ <literal>MYSQL_DATA_TRUNCATED</literal> is returned when
+ truncation reporting is enabled. (Reporting is enabled by
+ default, but can be controlled with
+ <literal>mysql_options()</literal>.) To determine which
parameters were truncated when this value is returned, check
the <literal>error</literal> members of the
<literal>MYSQL_BIND</literal> parameter structures.
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r1869 - in trunk: . refman-5.0 refman-5.1 | paul | 19 Apr |