killbill-aplcache

util: fix issue in MysqlTestingHelper information schema

12/13/2012 3:18:35 PM

Details

diff --git a/util/src/test/java/com/ning/billing/dbi/MysqlTestingHelper.java b/util/src/test/java/com/ning/billing/dbi/MysqlTestingHelper.java
index 39d1021..588d8d9 100644
--- a/util/src/test/java/com/ning/billing/dbi/MysqlTestingHelper.java
+++ b/util/src/test/java/com/ning/billing/dbi/MysqlTestingHelper.java
@@ -87,7 +87,7 @@ public class MysqlTestingHelper extends DBTestingHelper {
 
                 @Override
                 public List<String> withHandle(final Handle h) throws Exception {
-                    return h.createQuery("select table_name from tables where table_schema = :table_schema and table_type = 'BASE TABLE';")
+                    return h.createQuery("select table_name from information_schema.tables where table_schema = :table_schema and table_type = 'BASE TABLE';")
                             .bind("table_schema", DB_NAME)
                             .map(new StringMapper())
                             .list();