views:

16

answers:

0

I am trying to do a bulk transaction using SQLITE on CHROME (and SAFARI).

I'm doing this with javascript so this is what I have:

=============================================================

query = "BEGIN TRANSACTION; "

query += "INSERT INTO schools (name) VALUES('School 1');"

query += "COMMIT TRANSACTION;"

db.executeSql(query);

=============================================================

When I run this I get an error: NOT AUTHORIZED.

This only happens when I use the "BEGIN" or "BEGIN TRANSACTION" or "COMMIT" or "END TRANSACTION" keywords.

I've searched the web and the only thing that I can come up with so far is that the "NOT AUTHORIZED" error message means this functionality is not supported.

Does anyone know more about this?

Thanks,

Nik