- Fixed data type usage in 64bit

Reported by: Leonildo Costa
This commit is contained in:
Felipe Pena 2011-06-27 01:36:39 +00:00
parent f5b05ce162
commit 92ef080a2e
3 changed files with 3 additions and 3 deletions

View file

@ -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; pdo_odbc_db_handle *H = (pdo_odbc_db_handle *)dbh->driver_data;
RETCODE rc; RETCODE rc;
long row_count = -1; SQLLEN row_count = -1;
PDO_ODBC_HSTMT stmt; PDO_ODBC_HSTMT stmt;
rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &stmt); rc = SQLAllocHandle(SQL_HANDLE_STMT, H->dbc, &stmt);

View file

@ -164,7 +164,7 @@ static int odbc_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
RETCODE rc; RETCODE rc;
pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data; pdo_odbc_stmt *S = (pdo_odbc_stmt*)stmt->driver_data;
char *buf = NULL; char *buf = NULL;
long row_count = -1; SQLLEN row_count = -1;
if (stmt->executed) { if (stmt->executed) {
SQLCloseCursor(S->stmt); SQLCloseCursor(S->stmt);

View file

@ -136,7 +136,7 @@ typedef struct {
typedef struct { typedef struct {
char *data; char *data;
unsigned long datalen; unsigned long datalen;
long fetched_len; SQLLEN fetched_len;
SWORD coltype; SWORD coltype;
char colname[128]; char colname[128];
unsigned is_long; unsigned is_long;