From ad5bff4edb26132beba6e97aba60775077d1bdc9 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 11 Dec 2003 23:26:24 +0000 Subject: [PATCH] Bug #857749 --- ChangeLog | 1 + libraries/sqlparser.lib.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index db7ece75a..958f3c223 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ $Source$ Updated character sets overview for MySQL 4.1.1. * db_create.php, main.php: Ability to specify a default character set for a new database. + * libraries/sqlparser.lib.php: Bug #857749. 2003-12-11 Garvin Hicking * header_printview.inc.php: RFE #856503, show number of rows in printview diff --git a/libraries/sqlparser.lib.php b/libraries/sqlparser.lib.php index f729598db..0b0d71879 100644 --- a/libraries/sqlparser.lib.php +++ b/libraries/sqlparser.lib.php @@ -598,6 +598,10 @@ if ($is_minimum_common == FALSE) { if ($d_cur_upper == 'INNODB' && $d_prev_upper == 'SHOW' && $d_next_upper == 'STATUS') { $t_suffix = '_reservedWord'; } + + if ($d_cur_upper == 'DEFAULT' && $d_next_upper == 'CHARACTER') { + $t_suffix = '_reservedWord'; + } } else { // Do nothing }