summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-06-27 01:36:39 +0000
committerFelipe Pena <felipe@php.net>2011-06-27 01:36:39 +0000
commit4f21d3132e7fbebaab1575cf653546cbf678f5cc (patch)
treee8c6fdded722cbb3d168285f75eff6d2424b4728 /ext/pdo_odbc
parent3acd5811ae0ededa9523fe139ffeac08d956daee (diff)
downloadphp-git-4f21d3132e7fbebaab1575cf653546cbf678f5cc.tar.gz
- Fixed data type usage in 64bit
Reported by: Leonildo Costa
Diffstat (limited to 'ext/pdo_odbc')
-rwxr-xr-xext/pdo_odbc/odbc_driver.c2
-rwxr-xr-xext/pdo_odbc/odbc_stmt.c2
-rwxr-xr-xext/pdo_odbc/php_pdo_odbc_int.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdo_odbc/odbc_driver.c b/ext/pdo_odbc/odbc_driver.c
index f257649693..97b5747863 100755
--- a/ext/pdo_odbc/odbc_driver.c
+++ b/ext/pdo_odbc/odbc_driver.c
@@ -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);
diff --git a/ext/pdo_odbc/odbc_stmt.c b/ext/pdo_odbc/odbc_stmt.c
index 85061dfb84..12c5bc4bb2 100755
--- a/ext/pdo_odbc/odbc_stmt.c
+++ b/ext/pdo_odbc/odbc_stmt.c
@@ -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);
diff --git a/ext/pdo_odbc/php_pdo_odbc_int.h b/ext/pdo_odbc/php_pdo_odbc_int.h
index 2472e770d7..4c216ffafa 100755
--- a/ext/pdo_odbc/php_pdo_odbc_int.h
+++ b/ext/pdo_odbc/php_pdo_odbc_int.h
@@ -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;