Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix issue with string literal values not prepended with 'N' before th…
Browse files Browse the repository at this point in the history
…e delimeter, which is imperative for unicode values
  • Loading branch information
aelliott1485 committed Jun 1, 2015
1 parent 6ae5319 commit 53bdeaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ var sql = {
default: return " ";
}
});

if (/[^\u0000-\u00ff]/.test(val)) {
return "N'" + val + "'";
}
return "'" + val + "'";
},

Expand Down

0 comments on commit 53bdeaa

Please sign in to comment.