summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-07-19 16:55:22 +0000
committerWez Furlong <wez@php.net>2005-07-19 16:55:22 +0000
commit3ebfbe6bd20943fec32e03ea6d50ecf4ede83ec8 (patch)
tree3c692f276a49d8ba4b7c87eadc53dac7e1717bae
parent6e7a8f10d17b569f0c559ed8e75874a166f70887 (diff)
downloadphp-git-3ebfbe6bd20943fec32e03ea6d50ecf4ede83ec8.tar.gz
this should always be a string here, but just in case, convert it.
-rwxr-xr-xext/pdo_odbc/odbc_stmt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c
index 14d27a5c71..60bddb4383 100755
--- a/ext/pdo_odbc/odbc_stmt.c
+++ b/ext/pdo_odbc/odbc_stmt.c
@@ -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;
}