| From: | Petr Jelinek <pjmodos(at)pjmodos(dot)net> |
|---|---|
| To: | Kris Jurka <books(at)ejurka(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Hstore PGObject class |
| Date: | 2009-12-14 13:15:38 |
| Message-ID: | 4B263A7A.8000903@pjmodos.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Kris Jurka napsal(a):
>> I recently implemented hstore class for project I work on and I
>> decided to share it with list.
>
> I did the same thing myself pretty recently, but haven't finished
> cleaning it up. A quick look at the differences between our versions
> are that your getValue call doesn't handle nulls or strings with
> backslashes or quotes correctly. The parsing is a little to tricky to
> read through quickly, but I based mine on a pretty literal conversion
> of the backend C code.
Oh right it didn't this version does ;)
Parser should work fine. I am not big fan of literal conversions from
one language to another.
> Also at the moment the driver is still retaining JDK1.4 compatibility
> so generics can't be used.
Oh didn't know that (like I said I am new to Java), removed those.
--
Regards
Petr Jelinek (PJMODOS)
| Attachment | Content-Type | Size |
|---|---|---|
| PGhstore.java | text/plain | 4.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andreas | 2009-12-14 14:53:38 | Re: keeping Connection alive |
| Previous Message | Kris Jurka | 2009-12-14 08:57:52 | Re: Hstore PGObject class |