Open dwome opened 3 years ago
I have same problem
In my case I was not doing the commit or the disconect, this way it worked:
return new Promise((resolve, reject) => { var conn = fb.createConnection(); conn.connect(self.configuracoes.database,self.configuracoes.user,self.configuracoes.password,'',function(err){ if(self.reportError(err, query)) reject(err) ; conn.query(query, function(err,qres){ if(self.reportError(err, query)) reject(err) ; let obj = qres.fetchSync('all',true) conn.commit(function(err){ console.log("Commit done ", err); }); conn.disconnect(); resolve(obj) }); }); conn.on('error',function(error){ reject(error) console.log(error) });
});
Hello,
I am trying to update some values in my database, but the transaction shows no effect. Do you have an idea what I am doing wrong here?