-
-
Notifications
You must be signed in to change notification settings - Fork 646
Closed
Description
Question: The code below is called from another async function that gets the connection and does a query, then calls the UpdatePassword in a loop. It display the SqlUpdate variable, which I can run in another tool and it works fine.
So none of the three is happening:
- No data updated in database
- No err thrown (neither errQuery or the catch err2
- None of the console.logs after the 'await" are displayed.
async function UpdatePassword(connection, rowID) {
... code omitted ...
console.log("SQL Update=" + sqlUpdate);
try
{
var [rows, fields, errQuery] = await connection.query(sqlUpdate);
if (errQuery) throw errQuery;
console.log("Back from update");
console.log("AffectedRows=" + rows.affectedRows);
} catch (err2)
{
console.log("*** Catch Error:")
console.log(err2.stack);
}
console.log ("end function");
}
Metadata
Metadata
Assignees
Labels
No labels