This commit is contained in:
parent
e3db012d7c
commit
55caddd3ab
|
@ -14,7 +14,7 @@ pool.getConnection()
|
|||
|
||||
conn.query("SELECT 1 as val")
|
||||
.then(rows => { // rows: [ {val: 1}, meta: ... ]
|
||||
return conn.query("INSERT INTO myTable value (?, ?)", [1, "mariadb"]);
|
||||
return conn.query("INSERT INTO smartTag value (?, ?)", [1, "mariadb"]);
|
||||
})
|
||||
.then(res => { // res: { affectedRows: 1, insertId: 1, warningStatus: 0 }
|
||||
conn.release(); // release to pool
|
||||
|
|
Reference in New Issue