blob: 64eb4c7b921ecaa58eaaa0c8bc72fad67e6309c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
.import QtQuick.LocalStorage 2.0 as Sql
function test() {
var r="transaction_not_finished";
var db = Sql.openDatabaseSync("QmlTestDB-creation", "1.0", "Test database from Qt autotests", 1000000);
db.transaction(
function(tx) {
tx.executeSql('CREATE TABLE IF NOT EXISTS Greeting(salutation TEXT, salutee TEXT)');
tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ]);
r = "passed";
}
);
return r;
}
|