summaryrefslogtreecommitdiff
path: root/connectivity/qa/connectivity/tools/HsqlDatabase.java
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/qa/connectivity/tools/HsqlDatabase.java')
-rw-r--r--connectivity/qa/connectivity/tools/HsqlDatabase.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/connectivity/qa/connectivity/tools/HsqlDatabase.java b/connectivity/qa/connectivity/tools/HsqlDatabase.java
index 4a733efc64b2..851d0e38ac8c 100644
--- a/connectivity/qa/connectivity/tools/HsqlDatabase.java
+++ b/connectivity/qa/connectivity/tools/HsqlDatabase.java
@@ -81,17 +81,12 @@ public class HsqlDatabase extends AbstractDatabase
@param _name
the name of the table to drop
- @param _ifExists
- TRUE if it should be dropped only when it exists.
*/
- public void dropTable(final String _name, final boolean _ifExists) throws SQLException
+ private void dropTable(final String _name) throws SQLException
{
final StringBuffer dropStatement = new StringBuffer("DROP TABLE \"");
dropStatement.append(_name);
- if (_ifExists)
- {
- dropStatement.append("\" IF EXISTS");
- }
+ dropStatement.append("\" IF EXISTS");
executeSQL(dropStatement.toString());
}
@@ -99,7 +94,7 @@ public class HsqlDatabase extends AbstractDatabase
{
if (_dropIfExists)
{
- dropTable(_tableDesc.getName(), true);
+ dropTable(_tableDesc.getName());
}
createTable(_tableDesc);
}