title: Bulk Insert not working with Android 4.4 or any version < 5
body: <p>I had created two functions for insert in sqlite, </p>
  
  <p>In Android 5 or greater both working fine.</p>
  
  <p>And in Android 4 or down, Single Insert works fine, </p>
  
  <p>But, on <strong>Bulk Insert</strong> it through an error </p>
  
  <p><strong><em><code>could not prepare statement (1 near ",": syntax error)</code></em></strong></p>
  
  <p><strong>Single Insert</strong></p>
  
  <pre>
              function insert(TABLENAME, COLNAME, VALNAME, callBack) {
  
                  var query = "INSERT INTO " + TABLENAME + "(" + COLNAME + ") VALUES (" + VALNAME + ") ";
                  $ionicPlatform.ready(function () {
                      $cordovaSQLite.execute(db, query).then(function (res) {
                          console.log("INSERT " + TABLENAME + " -> " + res);
                          if (callBack)
                              callBack();
                      }, function (err) {
                          console.error(err);
                      });
                  });
              }
  </pre>
  
  <p><strong>Bulk Insert</strong></p>
  
  <pre>
              function bulkInsert(TABLENAME, COLNAME, VALNAMES, DATA, callBack) {
  
                  var query = "INSERT INTO " + TABLENAME + "(" + COLNAME + ") VALUES ";
                  var data = DATA;
                  var rowArgs = [];
                  query += VALNAMES.join(", ");
                  $cordovaSQLite.execute(db, query, data).then(function (res) {
                      console.log("inserted");
                      if (callBack)
                          callBack();
                  }, function (err) {
                      console.log(err);
                  });
  
              }
  </pre>
  
  <p>Can anyone help me out, how do i fix this issue??</p>
  
  <p>PS: Bulk insert parameter will be like this,</p>
  
  <p><strong><em><code>bulkInsert('users', 'id,name', ['(?,?)','(?,?)'], [[1,'abc'],[2,'xyz']], function(){});</code></em></strong></p>
  
  <p><strong>I am asking about Cordova-SQLite not Android SQLite</strong></p>