]> source.dussan.org Git - sonarqube.git/commitdiff
Table names are not correctly loaded in DaoTestCase
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 2 Dec 2011 13:42:20 +0000 (14:42 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 2 Dec 2011 13:42:20 +0000 (14:42 +0100)
sonar-core/src/test/java/org/sonar/persistence/dao/DaoTestCase.java

index ad5821511b8fdce1ecb25bdf7d14e4d029bdfa1f..045a6474d3dc878be0160290221c712e5c8ed0f6 100644 (file)
@@ -99,7 +99,7 @@ public abstract class DaoTestCase {
     DatabaseMetaData meta = connection.getMetaData();
     Statement statement = connection.createStatement();
 
-    ResultSet res = meta.getTables(null, null, null, new String[]{"TABLE"});
+    ResultSet res = meta.getTables(null, database.getSchema(), null, new String[]{"TABLE"});
     List<String> tables = Lists.newArrayList();
     while (res.next()) {
       String tableName = res.getString("TABLE_NAME");