Uh oh!
There was an error while loading. Please reload this page.
various fixes to postgres adapter - #39
Conversation
Objects that use the default toString() method will not create usefull serialized output so we make JSON out of them. Also we now allow Arrays to be serialized to JSON this way too as the array datatype will not cover Arrays of objects with a default toString() method.
mde
commented
Mar 22, 2013
This looks great, but there are a couple of things I'd like to clarify -- Also, would it be possible to add some tests for these changes? On Thu, Mar 21, 2013 at 2:44 PM, Ondrej notifications@github.com wrote:
|
der-On
commented
Mar 22, 2013
Yes there is an array datatype, but I tried to use it while having arrays containing objects. These get serialized to something like "[object Object],[object Object],...". I've looked into the pg parser code and it is not able to parse such arrays back and forth. It only supports arrays of strings/numbers. Also unserialization of object datatypes does not work. One has to do it manually in the model or somewhere else after a Model.load(). I know my code is not very standard compliant but see it as an idea to a possible solution. |
mde
commented
Apr 10, 2013
Merged, in master HEAD, thanks! |
No description provided.