Node-MySQL unable to insert TIME

If you have a string parameter, then you need to surround the ? with parentheses:

let query = "INSERT INTO Zeiterfassung (Break_Start) VALUES (?)";
dbConn.query(query, [ Break_Start ], function(err, rows) => {...});

The syntax with a single ? without parentheses is meant to pass objects.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top