Bookmark all SQL queries and not only the last one (bug #780569).

This commit is contained in:
Michal Čihař
2003-08-05 18:14:37 +00:00
parent 4c86787f6f
commit 5e5d35dfae
3 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ $Source$
not be set to NULL (bug #783533).
* tbl_move_copy.php3: Use database we're working on to avoid some problems
with replicated databases (bug #780439).
* read_dump.php3, sql.php3: Bookmark all SQL queries and not only the last
one (bug #780569).
2003-08-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.data.php3: bug 779453, wrong count

View File

@@ -241,6 +241,7 @@ if ($sql_query != '') {
$a_sql_query = $pieces[$i];
if ($i == $pieces_count - 1 && eregi('^SELECT', $a_sql_query)) {
$complete_query = $sql_query;
$display_query = $sql_query;
$sql_query = $a_sql_query;
include('./sql.php3');
exit();

View File

@@ -745,7 +745,7 @@ else {
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
<input type="hidden" name="fields[dbase]" value="<?php echo htmlspecialchars($db); ?>" />
<input type="hidden" name="fields[user]" value="<?php echo $cfg['Bookmark']['user']; ?>" />
<input type="hidden" name="fields[query]" value="<?php echo urlencode($sql_query); ?>" />
<input type="hidden" name="fields[query]" value="<?php echo urlencode(isset($complete_query) ? $complete_query : $sql_query); ?>" />
<input type="text" name="fields[label]" value="" />
<input type="submit" name="store_bkm" value="<?php echo $strBookmarkThis; ?>" />
</form>