]> granicus.if.org Git - php/commitdiff
- Fixed data type usage in 64bit
authorFelipe Pena <felipe@php.net>
Mon, 27 Jun 2011 01:36:39 +0000 (01:36 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 27 Jun 2011 01:36:39 +0000 (01:36 +0000)
  Reported by: Leonildo Costa

ext/pdo_odbc/odbc_driver.c
ext/pdo_odbc/odbc_stmt.c
ext/pdo_odbc/php_pdo_odbc_int.h

index f2576496938d117c194462c9d3e39af66ecee554..97b57478633a65e16fbe411511552bb502a4d0c3 100755 (executable)
@@ -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);
index 85061dfb8437648dbc8ec36ec95ddea599e3a345..12c5bc4bb2f0d6bb89a5c8b58708e19ddb38da99 100755 (executable)
@@ -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);
index 2472e770d7d09a0143cbfb6d144a0aca8a827535..4c216ffafa5e0f5207d55052d01e1ebce97e36e4 100755 (executable)
@@ -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;