不要怂,就是干,撸起袖子干!

Stop supporting json query without using helper function

1 parent 03d69260
Showing with 0 additions and 2 deletions
...@@ -785,8 +785,6 @@ module.exports = (function() { ...@@ -785,8 +785,6 @@ module.exports = (function() {
// impossible to write queries in portable SQL if tables are created in // impossible to write queries in portable SQL if tables are created in
// this way. Hence, we strip quotes if we don't want case sensitivity. // this way. Hence, we strip quotes if we don't want case sensitivity.
return Utils.removeTicks(identifier, '"'); return Utils.removeTicks(identifier, '"');
} else if (_.any(['->', '->>', '#>'], _.partial(_.contains, identifier))) { // Postgres json operators
return identifier;
} else { } else {
return Utils.addTicks(identifier, '"'); return Utils.addTicks(identifier, '"');
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!