summaryrefslogtreecommitdiff
path: root/ext/pdo_odbc/php_pdo_odbc_int.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2006-03-27 21:04:12 +0000
committerWez Furlong <wez@php.net>2006-03-27 21:04:12 +0000
commitc5df14364b8178ba5557308e1ebbfadae2d94453 (patch)
tree9516f4c6cfde07e3448f133946f2d9cbf40bab7a /ext/pdo_odbc/php_pdo_odbc_int.h
parentfb7d5bd7804420d86b28c0ae763d161fd3e7b370 (diff)
downloadphp-git-c5df14364b8178ba5557308e1ebbfadae2d94453.tar.gz
Fix for #36342; ODBC won't let you bind variables by buffer after "long"
columns. We simply add a flag that indicates if we've seen any long columns and will continue to bind the columns the slow way. While we're at it, increase the maximum length of the column names that we can handle.
Diffstat (limited to 'ext/pdo_odbc/php_pdo_odbc_int.h')
-rwxr-xr-xext/pdo_odbc/php_pdo_odbc_int.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pdo_odbc/php_pdo_odbc_int.h b/ext/pdo_odbc/php_pdo_odbc_int.h
index 72a65ede29..8e6630052e 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 {
unsigned long datalen;
long fetched_len;
SWORD coltype;
- char colname[32];
+ char colname[128];
} pdo_odbc_column;
typedef struct {
@@ -144,6 +144,8 @@ typedef struct {
pdo_odbc_column *cols;
pdo_odbc_db_handle *H;
pdo_odbc_errinfo einfo;
+ unsigned going_long:1;
+ unsigned _spare:31;
} pdo_odbc_stmt;
typedef struct {