summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/php_pdo_mysql_int.h
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2011-01-17 09:54:22 +0000
committerKalle Sommer Nielsen <kalle@php.net>2011-01-17 09:54:22 +0000
commit504b6f695e3bf0bae3ce4db14f48bb15f7db34a6 (patch)
treebc49768db755aaed6f63b13e6c2fe0f477e4408d /ext/pdo_mysql/php_pdo_mysql_int.h
parentff4982784a53f02b08b1b2cade9dff6e46977eca (diff)
downloadphp-git-504b6f695e3bf0bae3ce4db14f48bb15f7db34a6.tar.gz
MFT: Implemented FR #47802 (Support for setting character sets in DSN strings)
Diffstat (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h')
-rwxr-xr-xext/pdo_mysql/php_pdo_mysql_int.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pdo_mysql/php_pdo_mysql_int.h b/ext/pdo_mysql/php_pdo_mysql_int.h
index 6192b7238d..94ab41fddc 100755
--- a/ext/pdo_mysql/php_pdo_mysql_int.h
+++ b/ext/pdo_mysql/php_pdo_mysql_int.h
@@ -33,6 +33,10 @@
# define PDO_MYSQL_PARAM_BIND MYSQL_BIND
#endif
+#if (MYSQL_VERSION_ID >= 40113 && MYSQL_VERSION_ID < 50000) || MYSQL_VERSION_ID >= 50007 || defined(MYSQL_USE_MYSQLND)
+# define PDO_MYSQL_HAS_CHARSET
+#endif
+
#if defined(PDO_USE_MYSQLND) && PHP_DEBUG && !defined(PHP_WIN32)
#define PDO_DBG_ENABLED 1