summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib
diff options
context:
space:
mode:
authorAdam Baratz <adambaratz@php.net>2016-11-15 17:33:38 -0500
committerAdam Baratz <adambaratz@php.net>2016-11-15 17:33:38 -0500
commit83086d9a72675bad2b2560c6f427d0c1f1d1eba0 (patch)
treebea0f086d2e06b6fceb84ca512eb43b674682411 /ext/pdo_dblib
parentee38e01ff340abf6ccce8fba4a4f410eb087454f (diff)
downloadphp-git-83086d9a72675bad2b2560c6f427d0c1f1d1eba0.tar.gz
Add PDOStatement::activeQueryString()
Diffstat (limited to 'ext/pdo_dblib')
-rw-r--r--ext/pdo_dblib/dblib_driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/pdo_dblib/dblib_driver.c b/ext/pdo_dblib/dblib_driver.c
index 70d1a1cf60..f7f9f3872b 100644
--- a/ext/pdo_dblib/dblib_driver.c
+++ b/ext/pdo_dblib/dblib_driver.c
@@ -272,6 +272,11 @@ static int dblib_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val)
static int dblib_get_attribute(pdo_dbh_t *dbh, zend_long attr, zval *return_value)
{
switch (attr) {
+ case PDO_ATTR_EMULATE_PREPARES:
+ /* this is the only option available, but expose it so common tests and whatever else can introspect */
+ ZVAL_TRUE(return_value);
+ break;
+
case PDO_DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER:
ZVAL_BOOL(return_value, ((pdo_dblib_db_handle *)dbh->driver_data)->stringify_uniqueidentifier);
break;