wez Tue Jul 19 12:55:23 2005 EDT
Modified files:
/php-src/ext/pdo_odbc odbc_stmt.c
Log:
this should always be a string here, but just in case, convert it.
http://cvs.php.net/diff.php/php-src/ext/pdo_odbc/odbc_stmt.c?r1=1.25&r2=1.26&ty=u
Index: php-src/ext/pdo_odbc/odbc_stmt.c
diff -u php-src/ext/pdo_odbc/odbc_stmt.c:1.25
php-src/ext/pdo_odbc/odbc_stmt.c:1.26
--- php-src/ext/pdo_odbc/odbc_stmt.c:1.25 Tue Jul 19 11:26:15 2005
+++ php-src/ext/pdo_odbc/odbc_stmt.c Tue Jul 19 12:55:22 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: odbc_stmt.c,v 1.25 2005/07/19 15:26:15 wez Exp $ */
+/* $Id: odbc_stmt.c,v 1.26 2005/07/19 16:55:22 wez Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -85,6 +85,7 @@
if (Z_TYPE_P(param->parameter) != IS_RESOURCE) {
/* they passed in a string */
+ convert_to_string(param->parameter);
SQLPutData(S->stmt,
Z_STRVAL_P(param->parameter), Z_STRLEN_P(param->parameter));
continue;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php