Skip to content

Commit b260b96

Browse files
committed
docs: add note about ? replacement
closes #790
1 parent cb10b65 commit b260b96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ connection.query('SELECT * FROM users WHERE id = ?', [userId], function(err, res
414414
This looks similar to prepared statements in MySQL, however it really just uses
415415
the same `connection.escape()` method internally.
416416

417+
**Caution** This also differs from prepared statements in that all `?` are
418+
replaced, even those contained in comments and strings.
419+
417420
Different value types are escaped differently, here is how:
418421

419422
* Numbers are left untouched

0 commit comments

Comments
 (0)