melezov/pgscala — pull request #4 by tferega (2012-11-08 09:10:26+00:00)
Title: A small bugifix for PGNullableMapConverter.

A small bugifix.
`stringToMap` function of `PGNullableMapConverter` fails for input that contains a pair with an empty value.

So, input string `"key"=>""` fails with
> java.lang.IllegalArgumentException: Illegal pair: key"=>"
> org.pgscala.converters.PGNullableMapConverter.stringToMap(PGNullableMapConverter.java:61)

Problem is the `split` call on line 58. When called without its second argument, it truncates trailing empty strings, and returns an array with only one element (the key).