summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qqmlsqldatabase/data/error-b.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlsqldatabase/data/error-b.js')
-rw-r--r--tests/auto/qml/qqmlsqldatabase/data/error-b.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlsqldatabase/data/error-b.js b/tests/auto/qml/qqmlsqldatabase/data/error-b.js
new file mode 100644
index 0000000000..17e34c989e
--- /dev/null
+++ b/tests/auto/qml/qqmlsqldatabase/data/error-b.js
@@ -0,0 +1,15 @@
+.import QtQuick.LocalStorage 2.0 as Sql
+
+function test() {
+ var db = Sql.openDatabaseSync("QmlTestDB-error-b", "1.0", "Test database from Qt autotests", 1000000);
+ var r="transaction_not_finished";
+
+ db.transaction(
+ function(tx) {
+ tx.executeSql('INSERT INTO Greeting VALUES("junk","junk")');
+ notexist[123] = "oops"
+ }
+ );
+
+ return r;
+}