-
Notifications
You must be signed in to change notification settings - Fork 518
Open
Description
I am doing a simple insert query that contains different data types (if it matters) and i get the error "plugin.warn is not a function": where data is a dictionary object passed to the method.
is_active, status,user_id are integers
all the rest are strings.
var dt = new Date();
db.transaction(function(tx) {
tx.executeSql('INSERT INTO client (auto_id,user_id,username,first_name,last_name,email,is_active,date_joined,status,birthdate,marital_status,gender,phone,identification,nationality,lang,syncedon) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
[
auto_id,0,data.username,data.firstName,data.lastName,data.email,0,dt,1,data.birthdate,data.maritalStatus,data.gender,data.phone,data.idnumber,data.nation,data.lang,null
]
);
}, function(error) {
console.log('Transaction ERROR: ' + error.message);
reject(false)
}, function() {
console.log('Populated database OK');
resolve(true)
});
There are few examples on data manipulation. Am I even doing the insert right?
Metadata
Metadata
Assignees
Labels
No labels