summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/odbc_stmt.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-05-17 22:20:11 +0000
committerWez Furlong <wez@php.net>2004-05-17 22:20:11 +0000
commitd4c5556b8b32188079ceabccc451006d2ea7a42b (patch)
treee60c92892e224201d87e8156b5bb4cac3c3533f8 /ext/pdo_odbc/odbc_stmt.c
parentfd73439882c5ba1c68ce39006a8c65e515970cb8 (diff)
downloadphp-git-d4c5556b8b32188079ceabccc451006d2ea7a42b.tar.gz
Let is build under unix.
Tested against IBM DB2 and unixODBC. Could work with others.
Diffstat (limited to 'ext/pdo_odbc/odbc_stmt.c')
-rwxr-xr-xext/pdo_odbc/odbc_stmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c
index d46b7aa59b..9878be2ad4 100755
--- a/ext/pdo_odbc/odbc_stmt.c
+++ b/ext/pdo_odbc/odbc_stmt.c
@@ -130,7 +130,9 @@ static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *p
rc = SQLBindParameter(S->stmt, param->paramno+1,
SQL_PARAM_INPUT, ctype, sqltype, precision, scale,
- Z_STRVAL_P(param->parameter), 0, &Z_STRLEN_P(param->parameter)
+ Z_STRVAL_P(param->parameter), 0,
+ /* XXX: this has the wrong type for DB2 */
+ &Z_STRLEN_P(param->parameter)
);
return 1;