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
commit92ef080a2e096fdbf57c7777c39e90fbdb850e50 (patch)
tree11870a62bfbae42cb8184fe8205bdacc47938e93 /ext/pdo_odbc
parentf5b05ce1629aef23289eb69b596a23a45d23e9a5 (diff)
downloadphp-git-92ef080a2e096fdbf57c7777c39e90fbdb850e50.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;