From 504b6f695e3bf0bae3ce4db14f48bb15f7db34a6 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Mon, 17 Jan 2011 09:54:22 +0000 Subject: MFT: Implemented FR #47802 (Support for setting character sets in DSN strings) --- ext/pdo_mysql/php_pdo_mysql_int.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/pdo_mysql/php_pdo_mysql_int.h') 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 -- cgit v1.2.1