BUG #448206 - Support of table aliases, see SF bug tracker notes about it.

This commit is contained in:
Robin Johnson
2001-08-10 23:13:30 +00:00
parent 2384ce884b
commit cbf27c936b
3 changed files with 98 additions and 0 deletions

View File

@@ -82,6 +82,9 @@ if ($sql_query != '') {
$pieces = split_sql_file($sql_query, ';');
$pieces_count = count($pieces);
for($i = 0; $i < $pieces_count; $i++)
$pieces[$i] = expand_sql_query($pieces[$i]);
// Only one query to run
if ($pieces_count == 1 && !empty($pieces[0]) && $view_bookmark == 0) {
$sql_query = trim($pieces[0]);