lundi 29 juin 2015

Database statement is not working in google chrome

I am running chrome 43.0. In console i am running below command:

  >>  var db1 = openDatabase('testDB', '', 'my first database', 2 * 1024 * 1024, function(d){console.log(d);});

  >>  undefined

  >>  db1.transaction(function (tx) { 
      console.log("....................."); 
      console.log(tx.executeSql("INSERT INTO fileLog (fileName, bucketName) VALUES ('123','synergies')"));
    });

  >>  undefined
     .....................
      undefined

The problem is its not inserting any data in fileLog table.

Aucun commentaire:

Enregistrer un commentaire