diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2011-01-07 14:39:56 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2011-01-07 14:39:56 +0000 |
commit | e4c36b054cd98bf0345b96c2e9544002578137e7 (patch) | |
tree | 3187e4271695678b883b9af15d6dea2f4f4b8f28 /ext/pdo_mysql/php_pdo_mysql_int.h | |
parent | 5549e066f2970d11e4346259057eac2046234fb4 (diff) | |
download | php-git-e4c36b054cd98bf0345b96c2e9544002578137e7.tar.gz |
Implemented FR #47802, support for character sets in DSN strings for PDO_MYSQL
Diffstat (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h')
-rwxr-xr-x | ext/pdo_mysql/php_pdo_mysql_int.h | 4 |
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 b0c5ebdb1f..839b3ae137 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 |