summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/sql/data/reopen2.js
blob: 4f7248f094cf7d8f289ab4a9522009afb400dbd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function test() {
    var r="transaction_not_finished";
    var db = openDatabaseSync("QmlTestDB-reopen", "1.0", "Test database from Qt autotests", 1000000);

    db.transaction(
        function(tx) {
            var rs = tx.executeSql('SELECT * FROM Greeting');
            if (rs.rows.item(0).salutation == 'hello')
                r = "passed";
            else
                r = "FAILED";
        }
    );

    return r;
}