- 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;
RETCODE rc;
long row_count = -1;
SQLLEN row_count = -1;
PDO_ODBC_HSTMT 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;
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);

View File

@ -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;