jeremyevans/sequel — pull request #503 by yb66 (2012-06-18 17:33:41+00:00)
Title: Nested hashes with the pg_hstore extension

Hi Jeremy,

I was having trouble inserting a hash with nested hash-like structures into a HStore field, so I've hacked away at the pg_hstore extension to get it to work. I've put everything into the commit comments, but in summary I've added a lot of specs to test for more types of hashes and nested hashes. You'll need to install the Hashie gem to run that spec, as that was part of the problem I was having so I added that to the specs, it seemed a good test of other hash-like structures.

I took some code from the ActiveRecord pg_hstore extension and I've done my best to fit it into what was there already.

I hope it's ok, if there are any problems just let me know. I've actually still got another issue, I'll put that in the issues or mailing list separately though.

I managed to keep it down to six commits this time :-)

Regards,
Iain