|
|
|
@ -1535,7 +1535,7 @@ PHP_FUNCTION(odbc_cursor) |
|
|
|
result->stmt, state, &error, errormsg, |
|
|
|
sizeof(errormsg)-1, &errormsgsize); |
|
|
|
if (!strncmp(state,"S1015",5)) { |
|
|
|
snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt); |
|
|
|
snprintf(cursorname, max_len+1, "php_curs_" ZEND_ULONG_FMT, (zend_ulong)result->stmt); |
|
|
|
if (SQLSetCursorName(result->stmt,cursorname,SQL_NTS) != SQL_SUCCESS) { |
|
|
|
odbc_sql_error(result->conn_ptr, result->stmt, "SQLSetCursorName"); |
|
|
|
RETVAL_FALSE; |
|
|
|
|