summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/mysql_driver.c
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2014-11-10 08:16:35 +0100
committerMatteo Beccati <mbeccati@php.net>2014-11-10 08:16:35 +0100
commit3e4b91ec7f1278eec16ebdde579b10dc4893f500 (patch)
treea9bf209030b078a83436c2e52343ec7e02a46fc8 /ext/pdo_mysql/mysql_driver.c
parent722dd4637b20cbf40b22ac77b054abb47a1d1e9a (diff)
downloadphp-git-3e4b91ec7f1278eec16ebdde579b10dc4893f500.tar.gz
Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
-rw-r--r--ext/pdo_mysql/mysql_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c
index 825fe2647f..f4b4e47d25 100644
--- a/ext/pdo_mysql/mysql_driver.c
+++ b/ext/pdo_mysql/mysql_driver.c
@@ -458,6 +458,7 @@ static int pdo_mysql_get_attribute(pdo_dbh_t *dbh, long attr, zval *return_value
ZVAL_LONG(return_value, H->buffered);
break;
+ case PDO_ATTR_EMULATE_PREPARES:
case PDO_MYSQL_ATTR_DIRECT_QUERY:
ZVAL_LONG(return_value, H->emulate_prepare);
break;