Play2's anorm can't work on postgresql Play2's anorm can't work on postgresql postgresql postgresql

Play2's anorm can't work on postgresql


The latest play2(RC3) has solved this problem by checking the class name of meta object:

// HACK FOR POSTGRESif (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....".