Fix trigger export

This commit is contained in:
Jakub Vrana 2011-08-08 17:56:20 +02:00
parent b96facf0af
commit a30f149376
2 changed files with 4 additions and 1 deletions

View file

@ -535,7 +535,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
}
function trigger_sql($table, $style) {
return implode(get_vals("SELECT sql || ';;\n' FROM sqlite_master WHERE type = 'trigger' AND name = " . q($table)));
return implode(get_vals("SELECT sql || ';;\n' FROM sqlite_master WHERE type = 'trigger' AND tbl_name = " . q($table)));
}
function show_variables() {

View file

@ -1,3 +1,6 @@
Adminer 3.3.3-dev:
Fix trigger export (SQLite)
Adminer 3.3.2 (released 2011-08-08):
Display error with non-existent row in edit
Fix minor parser bug in SQL command with webserver file