mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
- Fixed data type usage in 64bit
Reported by: Leonildo Costa
This commit is contained in:
parent
f5b05ce162
commit
92ef080a2e
@ -224,7 +224,7 @@ static long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRML
|
||||
{
|
||||
pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data;
|
||||
RETCODE rc;
|
||||
long row_count = -1;
|
||||
SQLLEN row_count = -1;
|
||||
PDO_ODBC_HSTMT stmt;
|
||||
|
||||
rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &stmt);
|
||||
|
@ -164,7 +164,7 @@ static int odbc_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
|
||||
RETCODE rc;
|
||||
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
|
||||
char *buf = NULL;
|
||||
long row_count = -1;
|
||||
SQLLEN row_count = -1;
|
||||
|
||||
if (stmt->executed) {
|
||||
SQLCloseCursor(S->stmt);
|
||||
|
@ -136,7 +136,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
char *data;
|
||||
unsigned long datalen;
|
||||
long fetched_len;
|
||||
SQLLEN fetched_len;
|
||||
SWORD coltype;
|
||||
char colname[128];
|
||||
unsigned is_long;
|
||||
|
Loading…
Reference in New Issue
Block a user