Skip to content
Browse files

updates for plv8 latest

  • Loading branch information...
1 parent 9178bb6 commit a03492bba610b8166370c9e45842a7dd0e2ddbd4 @JerrySievert committed Jan 3, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 find.sql
  2. +1 −1 whereclause.sql
View
2 find.sql
@@ -50,7 +50,7 @@ SETOF json AS $$
var ret = [ ];
for (var i = 0; i < rows.length; i++) {
- ret.push(JSON.stringify(rows[i].data));
+ ret.push(rows[i].data);
}
plan.free();
View
2 whereclause.sql
@@ -81,7 +81,7 @@ VARCHAR AS $$
}
if (terms !== undefined) {
- var obj = JSON.parse(terms);
+ var obj = terms;
var keys = Object.keys(obj);
for (var i = 0; i < keys.length; i ++) {

0 comments on commit a03492b

Please sign in to comment.
Something went wrong with that request. Please try again.