Author: wyoung
Date: Fri Jun 22 23:46:36 2007
New Revision: 1596
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1596&view=rev
Log:
Removed the static_casts from the code where we assign raw field data
from a Row object in ColData form to an SSQLS field. This is fine for
POD types, but more complex types should be allowed to make use of C++'s
type conversion logic. This constitutes a technical API breakage, but
any code that this breaks was probably marginal anyway.
Modified:
trunk/lib/custom.pl
Modified: trunk/lib/custom.pl
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/custom.pl?rev=1596&r1=1595&r2=1596&view=diff
==============================================================================
--- trunk/lib/custom.pl (original)
+++ trunk/lib/custom.pl Fri Jun 22 23:46:36 2007
@@ -297,7 +297,7 @@
$parm_simple2c_b .= ", " unless $j == $i;
$defs .= " T$j I$j;";
$defs .= "\n" unless $j == $i;
- $popul .= " s->I$j = static_cast<T$j>(row.at(O$j));";
+ $popul .= " s->I$j = row.at(O$j);";
$popul .= "\n" unless $j == $i;
$names .= " N$j ";
$names .= ",\n" unless $j == $i;
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits