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:
authorWilliam Desportes <williamdes@wdes.fr>2019-04-28 22:01:36 +0300
committerWilliam Desportes <williamdes@wdes.fr>2019-04-28 22:32:31 +0300
commitca3f027f7e714df46865d8e8393d94ff535a957d (patch)
tree3f9f18448cb7ffdb3a6214e599b63df939306798 /tbl_create.php
parent14e8d5db7e7ca88c1d30537d773b8ce68ccab369 (diff)
Fix #13178 - Issues with uppercase table and database names
Fixes: #13178 [ci skip] Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'tbl_create.php')
-rw-r--r--tbl_create.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tbl_create.php b/tbl_create.php
index 503b168a32..1d9c30cc3c 100644
--- a/tbl_create.php
+++ b/tbl_create.php
@@ -62,6 +62,15 @@ $action = 'tbl_create.php';
* The form used to define the structure of the table has been submitted
*/
if (isset($_POST['do_save_data'])) {
+ // lower_case_table_names=1 `DB` becomes `db`
+ if ($GLOBALS['dbi']->getLowerCaseNames() === '1') {
+ $db = mb_strtolower(
+ $db
+ );
+ $table = mb_strtolower(
+ $table
+ );
+ }
$sql_query = $createAddField->getTableCreationQuery($db, $table);
// If there is a request for SQL previewing.