Skip to content

Commit

Permalink
change exportTables should be exportTable
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jan 2, 2013
1 parent 93d3f80 commit a519148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -166,7 +166,7 @@ protected boolean executeWithOptions(CommandLine line) throws Exception {
if (args.length == 0) {
dbExport.exportTables(System.out);
} else if (line.hasOption(OPTION_SQL)) {
dbExport.exportTables(System.out, args[0], line.getOptionValue(OPTION_SQL));
dbExport.exportTable(System.out, args[0], line.getOptionValue(OPTION_SQL));
} else {
dbExport.exportTables(System.out, args);
}
Expand Down
Expand Up @@ -145,7 +145,7 @@ public void exportTables(OutputStream output, String[] tableNames) throws IOExce
exportTables(output, tableList.toArray(new Table[tableList.size()]));
}

public void exportTables(OutputStream output, String tableName, String sql) throws IOException {
public void exportTable(OutputStream output, String tableName, String sql) throws IOException {
Table table = platform
.readTableFromDatabase(getCatalogToUse(), getSchemaToUse(), tableName);
exportTables(output, new Table[] { table }, sql);
Expand Down

0 comments on commit a519148

Please sign in to comment.