Bookmark all SQL queries and not only the last one (bug #780569).
This commit is contained in:
@@ -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
|
||||
|
@@ -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();
|
||||
|
2
sql.php3
2
sql.php3
@@ -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>
|
||||
|
Reference in New Issue
Block a user