summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/dblib_driver.c
diff options
context:
space:
mode:
authorAdam Baratz <adam.baratz@gmail.com>2016-02-26 12:01:59 -0500
committerAnatol Belski <ab@php.net>2016-04-06 14:41:55 +0200
commited3edc2f05c7be9c498aee64de2ad5a796456135 (patch)
treed15ff1d8c798ddfda1fbf448da6eda5ab16d03d0 /ext/pdo_dblib/dblib_driver.c
parentc256a8c25e3c24a66271ba1d749591f2fcf84628 (diff)
downloadphp-git-ed3edc2f05c7be9c498aee64de2ad5a796456135.tar.gz
fix bug #71667 (emulate how mssql extension names "computed" columns)
Diffstat (limited to 'ext/pdo_dblib/dblib_driver.c')
-rw-r--r--ext/pdo_dblib/dblib_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c
index 9d9424a8b2..ad54ae57b3 100644
--- a/ext/pdo_dblib/dblib_driver.c
+++ b/ext/pdo_dblib/dblib_driver.c
@@ -101,6 +101,7 @@ static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len
stmt->driver_data = S;
stmt->methods = &dblib_stmt_methods;
stmt->supports_placeholders = PDO_PLACEHOLDER_NONE;
+ S->computed_column_name_count = 0;
S->err.sqlstate = stmt->error_code;
return 1;