Closed Bahanix closed 10 years ago
Damn... Arrays are not supported with HStore. Because HStore store everything as a string. So It would mean storing some YAML or other format inside the HStore which IMO defeat the purpose.
I will add it to the README.
Note that it may change with future Postgres releases, they are talking about typed hstores.
But it does works very well with JSON....
Really sorry...
I understand, sorry for the inconvenience! JSON does not fit my need to query efficiently the store (using the @> postgres hstore operator). I'll think about a solution. Thanks for your work.
No inconvenience here. You forced me to be more explicit in the readme. That's all good!
While boolean, string, datetime and integer work very well in a typed hstore, arrays remain empty:
Note: the empty array only appear after retrieving data, while the returned Dog instance on create and update is OK.
Here's the minimal app reproducing this issue: https://github.com/Bahanix/typed-hstore/commit/c836018ec661a8ed8b181fa9cbe1c07d0999080b
Thank for your work!