From: <ibr...@us...> - 2009-11-10 18:48:55
|
Revision: 3351 http://tora.svn.sourceforge.net/tora/?rev=3351&view=rev Author: ibre5041 Date: 2009-11-10 18:48:46 +0000 (Tue, 10 Nov 2009) Log Message: ----------- handle varchar placeholders in the queries Modified Paths: -------------- branches/tora-trotl/src/tooracleconnection.cpp Modified: branches/tora-trotl/src/tooracleconnection.cpp =================================================================== --- branches/tora-trotl/src/tooracleconnection.cpp 2009-11-10 18:47:28 UTC (rev 3350) +++ branches/tora-trotl/src/tooracleconnection.cpp 2009-11-10 18:48:46 UTC (rev 3351) @@ -1180,7 +1180,7 @@ << "VERY VERY TODO: bind param(i):'" << bp.bind_name << "'\t" << (*i).toInt() << " of:" << query()->params().size() << std::endl; - } else if( bp.bind_typename == "char" && (*i).isString()) { + } else if( (bp.bind_typename == "char" || bp.bind_typename == "varchar") && (*i).isString()) { std::string param((const char*)((*i).toString().toUtf8().constData())); get_log().ts( std::string(__HERE__)) << "VERY VERY TODO: bind param(s):'" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |