Permalink
Browse files

[fix] runtime, postgres: StringArray serialization

  • Loading branch information...
BourgerieQuentin committed Mar 6, 2013
1 parent 4e48661 commit bfde3add7c58eddbf5f12ed7869acbfb7dbaf9f7
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/stdlib/apis/postgres/postgres.opa
@@ -259,7 +259,8 @@ Postgres = {{
else
c = String.char_at(s, current)
if c == '\"' then
- do Binary.add_string(bin, "\"\"")
+ do Binary.add_string(bin, String.substring(last, current - last, s))
+ do Binary.add_string(bin, "\\\"")
aux_string(s, size, current+1, current+1)
else aux_string(s, size, last, current+1)
rec aux =

0 comments on commit bfde3ad

Please sign in to comment.