Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Mendel <cybot_tm@users.sourceforge.net>2007-10-02 13:53:43 +0400
committerSebastian Mendel <cybot_tm@users.sourceforge.net>2007-10-02 13:53:43 +0400
commite1fd3956316e84ab19b00898ea5db2260ae86af2 (patch)
tree5c9b331871a1183b063b6d267d4d19e49a84401b /db_create.php
parent619f6592eea5677130e2c3027acc7e081197b5f9 (diff)
removed MySQL < 5 code
Diffstat (limited to 'db_create.php')
-rw-r--r--db_create.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db_create.php b/db_create.php
index ec00be6361..a690643167 100644
--- a/db_create.php
+++ b/db_create.php
@@ -23,7 +23,7 @@ $err_url = 'main.php?' . PMA_generate_common_url();
* Builds and executes the db creation sql query
*/
$sql_query = 'CREATE DATABASE ' . PMA_backquote($db);
-if (!empty($db_collation) && PMA_MYSQL_INT_VERSION >= 40101) {
+if (!empty($db_collation)) {
list($db_charset) = explode('_', $db_collation);
if (in_array($db_charset, $mysql_charsets) && in_array($db_collation, $mysql_collations[$db_charset])) {
$sql_query .= ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);