Author: mjevans
Date: Mon Mar 14 02:37:40 2011
New Revision: 14753
Modified:
dbi/trunk/Changes
dbi/trunk/DBI.pm
Log:
Fixed sql_type_cast example and typo
Modified: dbi/trunk/Changes
==============================================================================
--- dbi/trunk/Changes (original)
+++ dbi/trunk/Changes Mon Mar 14 02:37:40 2011
@@ -11,6 +11,7 @@
Fixed ParamTypes example in the pod (Martin J. Evans)
Fixed the definition of ArrayTupleStatus and remove confusion over
rows affected in list context of execute_array (Martin J. Evans)
+ Fixed sql_type_cast example and typo in errors (Martin J. Evans)
Enhanced and standardized driver trace level mechanism (Tim Bunce)
Removed old code that was an inneffective attempt to detect
Modified: dbi/trunk/DBI.pm
==============================================================================
--- dbi/trunk/DBI.pm (original)
+++ dbi/trunk/DBI.pm Mon Mar 14 02:37:40 2011
@@ -3073,7 +3073,7 @@
=head3 C<sql_type_cast>
- $sts = DBI->sql_type_cast($sv, $sql_type, $flags);
+ $sts = DBI::sql_type_cast($sv, $sql_type, $flags);
sql_type_cast attempts to cast C<$sv> to the SQL type (see L<DBI
Constants>) specified in C<$sql_type>. At present only the SQL types
@@ -3119,7 +3119,7 @@
-2 sql_type is not handled
-1 sv is undef so unchanged
0 sv could not be cast cleanly and DBIstcf_STRICT was used
- 1 sv could not be case and DBIstcf_STRICT was not used
+ 1 sv could not be cast and DBIstcf_STRICT was not used
2 sv was cast successfully
This method is exported by the :utils tag and was introduced in DBI