diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-19 10:25:53 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2009-05-19 10:25:53 +0000 |
commit | 5d3972f73a50b9d8f51ad895ff93331fa5445c9a (patch) | |
tree | 8b4b65aa06db4d74a26d13e59343b67cd4a7e116 /ext/pdo_odbc | |
parent | a58bd002d6a7f88720984205db717d7d67dfafbd (diff) | |
download | php-git-5d3972f73a50b9d8f51ad895ff93331fa5445c9a.tar.gz |
MFH: Cast to SQLUSMALLINT
Diffstat (limited to 'ext/pdo_odbc')
-rwxr-xr-x | ext/pdo_odbc/odbc_stmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c index 6adfadb699..d948987017 100755 --- a/ext/pdo_odbc/odbc_stmt.c +++ b/ext/pdo_odbc/odbc_stmt.c @@ -307,7 +307,7 @@ static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *p break; } - rc = SQLDescribeParam(S->stmt, param->paramno+1, &sqltype, &precision, &scale, &nullable); + rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nullable); if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { /* MS Access, for instance, doesn't support SQLDescribeParam, * so we need to guess */ @@ -364,7 +364,7 @@ static int odbc_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *p return 0; } - rc = SQLBindParameter(S->stmt, param->paramno+1, + rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, P->paramtype, ctype, sqltype, precision, scale, P->paramtype == SQL_PARAM_INPUT ? (SQLPOINTER)param : |