I found that the row parsers of play2\'s anorm depend on the meta data returned by jdbc driver.
So in the built-in sample \"zentasks\" provided by play, I can find such
The latest play2(RC3) has solved this problem by checking the class name of meta object:
// HACK FOR POSTGRES
if (meta.getClass.getName.startsWith("org.postgresql.")) {
meta.asInstanceOf[{ def getBaseTableName(i: Int): String }].getBaseTableName(i)
} else {
meta.getTableName(i)
}
But be careful if you want to use it with p6spy
, it doesn't work because the class name of meta will be "com.p6spy....", not "org.postgresql....".