tbl_properties_structure.php3 +40: Fix for a warning notice
libraries/sqlparser.lib.php3: Fix for another minor formatting quirk
This commit is contained in:
Robin Johnson
2002-07-31 20:18:27 +00:00
parent 81c69ade2b
commit 35099eb6b6
3 changed files with 8 additions and 3 deletions

View File

@@ -180,10 +180,10 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
// Checks for MySQL escaping using a \
// And checks for ANSI escaping using the $quotetype character
if (PMA_STR_charIsEscaped($sql, $pos)) {
if ( ($pos < $len) && PMA_STR_charIsEscaped($sql, $pos)) {
$pos ++;
continue;
} else if (($sql[$pos] == $quotetype) && ($sql[$pos + 1] == $quotetype)) {
} else if ( ($pos+1 < $len) && ($sql[$pos] == $quotetype) && ($sql[$pos + 1] == $quotetype)) {
$pos = $pos + 2;
continue;
} else {
@@ -553,6 +553,7 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
$keywords_with_brackets_1before = array(
'INDEX',
'KEY',
'ON',
'USING'
);