1
0
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:
lana-k
2021-04-22 17:01:46 +02:00
parent 9e29a12ebb
commit d0c624a3cc
2 changed files with 10 additions and 19 deletions

View File

@@ -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]
}
}