Skip to content

Commit

Permalink
Merge pull request #385 from UtillYou/master
Browse files Browse the repository at this point in the history
fix the escape problem on PostgreSQL
  • Loading branch information
welefen authored Jul 5, 2016
2 parents a51c4c5 + cbec995 commit 900a82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapter/db/postgresql.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class extends Base {
*/
parseValue(value){
if (think.isString(value)) {
value = '\'' + this.escapeString(value) + '\'';
value = 'E\'' + this.escapeString(value) + '\'';
}else if(think.isArray(value)){
if (/^exp$/.test(value[0])) {
value = value[1];
Expand Down

0 comments on commit 900a82a

Please sign in to comment.