Skip to content

Instantly share code, notes, and snippets.

Created September 25, 2013 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6705472 to your computer and use it in GitHub Desktop.
Save anonymous/6705472 to your computer and use it in GitHub Desktop.
I was told this may be an issue with my version of plv8 extension on debian, but not totally sure yet:
$pgresult = pg_query_params($this->connection, "INSERT INTO {$this->tablename} (data) VALUES ($1)", array($data));
Warning: pg_query_params(): Query failed: ERROR: SyntaxError: Unexpected token o DETAIL: undefined() LINE 0: [object Object] CONTEXT: PL/pgSQL function transcript_update_fidx() line 3 at assignment in .../collection.php on line 128
ERROR: SyntaxError: Unexpected token o
DETAIL: undefined() LINE 0: [object Object]
CONTEXT: PL/pgSQL function transcript_update_fidx() line 3 at assignment
Data object:
{"userid":3,"type":"mod","entityid":14,"attemptmajor":1,"attemptminor":1,
...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment