Skip to content

Commit

Permalink
PostgreSQL: Fix dollar-quoted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Feb 6, 2021
1 parent 6f4e94d commit 408b15b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jush.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/jush-pgsql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/jush.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ var jush = {
this.tr.php_eot2._2 = new RegExp('(\n)(' + match[1] + ')(;?\n)');
this.build_regexp('php_eot2', (match[2] == "'" ? { _2: this.tr.php_eot2._2 } : this.tr.php_eot2));
} else if (state == 'pgsql_eot') {
this.tr.pgsql_eot2._2 = new RegExp('\\$' + text.substring(start, match.index) + '\\$');
this.tr.pgsql_eot2._2 = new RegExp('\\$' + match[0].replace(/\$/, '\\$'));
this.build_regexp('pgsql_eot2', this.tr.pgsql_eot2);
}
} else {
Expand Down

0 comments on commit 408b15b

Please sign in to comment.