bug #1798786 [import] Wrong error when a string contains semicolon

This commit is contained in:
Sebastian Mendel
2007-12-18 09:27:12 +00:00
parent de356ffb79
commit 49a5ac6f5a
2 changed files with 6 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1851833 [display] Sorting forgets an explicit LIMIT
(fix for sorting on column headers)
- bug #1764182 [cookies] Suhosin cookie encryption breaks phpMyAdmin
- bug #1798786 [import] Wrong error when a string contains semicolon
2.11.3.0 (2007-12-08)
- patch #1818389 to remove a notice (failed to flush buffer), thanks to

View File

@@ -156,6 +156,7 @@ while (!($finished && $i >= $len) && !$error && !$timeout_passed) {
$endq = TRUE;
$i = $len - 1;
}
$found_delimiter = false;
break;
}
// Was not the quote escaped?
@@ -165,6 +166,10 @@ while (!($finished && $i >= $len) && !$error && !$timeout_passed) {
$endq = (((($pos - 1) - $j) % 2) == 0);
// Skip the string
$i = $pos;
if ($first_sql_delimiter < $pos) {
$found_delimiter = false;
}
}
if (!$endq) {
break;