bug 857186 - regex delimiter

This commit is contained in:
Garvin Hicking
2003-12-10 10:27:37 +00:00
parent 71c35d8108
commit 75f80e4c26
2 changed files with 6 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ while ($row = mysql_fetch_array($rowset)) {
// reformat mysql query output - staybyte - 9. June 2001
// loic1: set or enum types: slashes single quotes inside options
if (preg_match('@^(set|enum)\((.+)\)$@i', $type, $tmp)) {
$tmp[2] = substr(preg_replace('/@([^,])\'\'/', '\\1\\\'@', ',' . $tmp[2]), 1);
$tmp[2] = substr(preg_replace('@([^,])\'\'@', '\\1\\\'', ',' . $tmp[2]), 1);
$type = $tmp[1] . '(' . str_replace(',', ', ', $tmp[2]) . ')';
$type_nowrap = '';