1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00

this should always be a string here, but just in case, convert it.

This commit is contained in:
Wez Furlong
2005-07-19 16:55:22 +00:00
parent 6e7a8f10d1
commit 3ebfbe6bd2
+1
View File
@@ -85,6 +85,7 @@ static int odbc_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
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;
}