Skip to content

Commit

Permalink
Merge pull request #163 from ebocher/fixlog
Browse files Browse the repository at this point in the history
Fix comments #159
  • Loading branch information
SPalominos authored Nov 13, 2019
2 parents e3633e8 + 7792384 commit 82e9bbf
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public interface ITable extends IDataSet {
/**
* Get the type of the column from the underlying table.
*
* @param columnName set the name of the column
* @return The type of the column.
*/
String getColumnsType(String columnName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public interface IJdbcDataSource extends IDataSource, GroovyObject {
*
* @param tableName Name of the table to check.
*
* @return True if the table is found, false otherwise.
* @return True if {@link ITable} is found, false otherwise.
*/
boolean hasTable(String tableName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public ResultSetMetaData getMetaData(){
*
* @return The parent DataSource.
*/
public JdbcDataSource getJdbcDataSource(){
protected JdbcDataSource getJdbcDataSource(){
return jdbcDataSource;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ public boolean hasTable(String tableName) {
try {
return JDBCUtilities.tableExists(connectionWrapper,TableLocation.parse(tableName, true).toString());
} catch (SQLException ex) {
LOGGER.error("Cannot find the table '" + tableName + ".\n" +
ex.getLocalizedMessage());
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ public boolean hasTable(String tableName) {
try {
return JDBCUtilities.tableExists(connectionWrapper,TableLocation.parse(tableName, false).toString());
} catch (SQLException ex) {
LOGGER.error("Cannot find the table '" + tableName + ".\n" +
ex.getLocalizedMessage());
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ class GroovyH2GISTest {
h2GIS.getSpatialTable("orbisgis").the_geom.createSpatialIndex()
assertTrue h2GIS.getSpatialTable("orbisgis").the_geom.indexed
assertTrue h2GIS.getSpatialTable("orbisgis").the_geom.spatialIndexed
h2GIS.getSpatialTable("orbisgis").the_geom.createSpatialIndex()
}

@Test
Expand Down Expand Up @@ -629,5 +628,5 @@ class GroovyH2GISTest {
""")
def concat = ""
println h2GIS.firstRow("select count(*) as nb from h2gis").nb
}
}
}

0 comments on commit 82e9bbf

Please sign in to comment.