Fix *ambigious match found* exception for PostgreSQL.
Merge pull request #70 from janno-p/master

Fix *ambigious match found* exception for PostgreSQL.