Browse Source

REPORT-6285 SQL中有注释时参数刷新问题

master
RichieJi 7 years ago
parent
commit
0ecd686c6b
  1. 5
      designer_base/src/com/fr/design/data/tabledata/tabledatapane/DBTableDataPane.java

5
designer_base/src/com/fr/design/data/tabledata/tabledatapane/DBTableDataPane.java

@ -37,6 +37,7 @@ import com.fr.design.menu.ToolBarDef;
import com.fr.design.utils.gui.GUICoreUtils; import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.general.sql.SqlUtils;
import com.fr.script.Calculator; import com.fr.script.Calculator;
import com.fr.stable.ArrayUtils; import com.fr.stable.ArrayUtils;
import com.fr.stable.ParameterProvider; import com.fr.stable.ParameterProvider;
@ -177,8 +178,8 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> {
private void refresh() { private void refresh() {
String[] paramTexts = new String[2]; String[] paramTexts = new String[2];
paramTexts[0] = sqlTextPane.getText(); paramTexts[0] = SqlUtils.tryPureSqlText(sqlTextPane.getText());
paramTexts[1] = pageQuery; paramTexts[1] = SqlUtils.tryPureSqlText(pageQuery);
List<ParameterProvider> existParameterList = editorPane.update(); List<ParameterProvider> existParameterList = editorPane.update();
Parameter[] ps = existParameterList == null ? new Parameter[0] : existParameterList.toArray(new Parameter[existParameterList.size()]); Parameter[] ps = existParameterList == null ? new Parameter[0] : existParameterList.toArray(new Parameter[existParameterList.size()]);

Loading…
Cancel
Save