playframework/Play20 — pull request #135 by jannic (2012-02-19 22:46:47+00:00)
Title: Fix lighthouse bug #136 (Play2's anorm can't work on postgresql)

This patch works around postgresql's behaviour to return the empty string on getTableName().
It calls getBaseTableName() instead if the ResultSetMetaData is a PGResultSetMetaData.

Disadvantages:
- adds a dependency on the postgresql JDBC driver
- uses structural types, may be slower due to use of reflection

(bug report: https://play.lighthouseapp.com/projects/82401/tickets/136-play2s-anorm-cant-work-on-postgresql)