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

Commit

Permalink
Merge pull request #21 from RubiconInternational/master
Browse files Browse the repository at this point in the history
fix issue with string literal values not prepended with 'N' before th…
  • Loading branch information
tjwebb committed Jul 31, 2015
2 parents 5068798 + 53bdeaa commit f764cfb
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 f764cfb

Please sign in to comment.