From 90e967cd7620f4266b8208824cdceb7ccfcb37cb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 27 Aug 2001 14:37:33 +0000 Subject: [PATCH] sql keywords returned in lowercase --- ChangeLog | 3 +++ tbl_copy.php3 | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa2af7590..6c9f14aa6 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ $Source$ 2001-08-27 Marc Delisle * lang/dutch.inc.php3 updates, thanks to Arjen Roodselaar + * tbl_copy.php3, eregi_replace instead of ereg_replace because + MySQL 3.23.20 returns sql keywords in lowercase, thanks to + Jan Paul Schmidt 2001-08-25 Marc Delisle * lib.inc.php3, bug 455088, avoid to reveal username/password diff --git a/tbl_copy.php3 b/tbl_copy.php3 index c6a9ebe37..b9e56142c 100755 --- a/tbl_copy.php3 +++ b/tbl_copy.php3 @@ -17,7 +17,7 @@ function my_handler($sql_insert = '') global $db, $table, $new_name; global $sql_insert_data; - $sql_insert = ereg_replace('INSERT INTO (`?)' . $table . '(`?)', 'INSERT INTO ' . backquote($new_name), $sql_insert); + $sql_insert = eregi_replace('INSERT INTO (`?)' . $table . '(`?)', 'INSERT INTO ' . backquote($new_name), $sql_insert); $result = mysql_query($sql_insert) or mysql_die('', $sql_insert); $sql_insert_data .= $sql_insert . ';' . "\n"; @@ -45,7 +45,7 @@ if (isset($new_name) && trim($new_name) != '') { $asfile = 1; $sql_structure = get_table_def($db, $table, "\n"); - $sql_structure = ereg_replace('^CREATE TABLE (`?)' . $table . '(`?)', 'CREATE TABLE ' . backquote($new_name), $sql_structure); + $sql_structure = eregi_replace('^CREATE TABLE (`?)' . $table . '(`?)', 'CREATE TABLE ' . backquote($new_name), $sql_structure); $result = mysql_query($sql_structure) or mysql_die('', $sql_structure); if (isset($sql_query)) { $sql_query .= "\n" . $sql_structure . ';';