[Squirrel-sql-commits] sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/action TableExportCsvComma
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Rob M. <man...@us...> - 2007-03-21 09:48:49
|
Update of /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/action In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23643/fw/src/net/sourceforge/squirrel_sql/fw/gui/action Modified Files: TableExportCsvCommand.java Log Message: Fixed logic error for detecting missing clob data. Index: TableExportCsvCommand.java =================================================================== RCS file: /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/action/TableExportCsvCommand.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** TableExportCsvCommand.java 17 Mar 2007 23:53:36 -0000 1.12 --- TableExportCsvCommand.java 21 Mar 2007 09:48:46 -0000 1.13 *************** *** 57,61 **** } ! if (!checkMissingData(ctrl.getSeparatorChar())) { int choice = JOptionPane.showConfirmDialog(GUIUtils.getMainFrame(), i18n.missingClobDataMsg); --- 57,61 ---- } ! if (checkMissingData(ctrl.getSeparatorChar())) { int choice = JOptionPane.showConfirmDialog(GUIUtils.getMainFrame(), i18n.missingClobDataMsg); *************** *** 110,113 **** --- 110,117 ---- private boolean checkMissingData(String sepChar) { + // TODO: if the use checks "export entire table" and doesn't select all, + // then the selected indices are not set, and this check doesn't properly + // detect missing data. If export entire table is selected, we need to + // set the selected indexes below correctly. int firstSelectedColIdx = _table.getSelectedColumn(); int lastSelectedColIdx = firstSelectedColIdx + _table.getSelectedColumnCount(); |