summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/php_pdo_dblib_int.h
diff options
context:
space:
mode:
authorStanley Sufficool <ssufficool@php.net>2013-05-31 22:53:08 -0700
committerStanley Sufficool <ssufficool@php.net>2013-05-31 22:53:08 -0700
commit0e2bcf3373d914a215784c041a2a4c3b6afc2034 (patch)
tree234a963b57f0efb0ffbf1f5ce51e4f3a0fd28396 /ext/pdo_dblib/php_pdo_dblib_int.h
parentd22c7368e77d3da464e66898e96c0457b6f2d672 (diff)
downloadphp-git-0e2bcf3373d914a215784c041a2a4c3b6afc2034.tar.gz
FIX BUG #64338, #64808, #63638
PDO DBLIB would segfault on getcolumn meta when colno was out of bounds. DBLIB connection specified null arg to dbsetopt per Microsoft technical docs, but FreeTDS complains. The SQL USE statement was invalid for SQL Azure, use DBSETLDBNAME instead.
Diffstat (limited to 'ext/pdo_dblib/php_pdo_dblib_int.h')
-rw-r--r--ext/pdo_dblib/php_pdo_dblib_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo_dblib/php_pdo_dblib_int.h b/ext/pdo_dblib/php_pdo_dblib_int.h
index dd06a1d94f..3670de7439 100644
--- a/ext/pdo_dblib/php_pdo_dblib_int.h
+++ b/ext/pdo_dblib/php_pdo_dblib_int.h
@@ -71,6 +71,8 @@
# define SQLVARBINARY SYBVARBINARY
# ifdef SYBUNIQUE
# define SQLUNIQUE SYBUNIQUE
+#else
+# define SQLUNIQUE 36 /* FreeTDS Hack */
# endif
# define DBERRHANDLE(a, b) dberrhandle(b)