mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
Show result of the last query in a script #36
This commit is contained in:
@@ -105,8 +105,8 @@ class Database {
|
||||
if (results.error) {
|
||||
throw results.error
|
||||
}
|
||||
// if it was more than one select - take only the first one
|
||||
return results[0]
|
||||
// if it was more than one select - take only the last one
|
||||
return results[results.length - 1]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user