• R/O
  • SSH
  • HTTPS

dbviewer: コミット


コミットメタ情報

リビジョン265 (tree)
日時2013-03-09 21:25:16
作者zigen

ログメッセージ

(メッセージはありません)

変更サマリ

差分

--- DBViewer/branches/2.0.0/src/zigen/plugin/db/core/SQLCreator.java (revision 264)
+++ DBViewer/branches/2.0.0/src/zigen/plugin/db/core/SQLCreator.java (revision 265)
@@ -46,6 +46,8 @@
4646 Object uniqueItem = uniqueItems[i];
4747 TableColumn col = uniqueColumns[i];
4848
49+ System.out.println("col.getDataType():" + col.getDataType());
50+
4951 switch (col.getDataType()) {
5052 case java.sql.Types.BIGINT:
5153 case java.sql.Types.BLOB:
@@ -55,7 +57,7 @@
5557 case java.sql.Types.LONGVARBINARY:
5658 continue;
5759 }
58- if(col.getDataType() == java.sql.Types.BLOB)
60+ //if(col.getDataType() == java.sql.Types.BLOB)
5961
6062 if (k == 0) {
6163 sb.append(" WHERE "); //$NON-NLS-1$
--- DBViewer/branches/2.0.0/src/zigen/plugin/db/ui/editors/LobViewDialog.java (revision 264)
+++ DBViewer/branches/2.0.0/src/zigen/plugin/db/ui/editors/LobViewDialog.java (revision 265)
@@ -491,9 +491,11 @@
491491 ;
492492 }
493493 }
494- });
495- ScrolledComposite sc = new ScrolledComposite(tabFolder, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
496- sc.setLayoutData(new GridData(GridData.FILL_BOTH));
494+ });
495+
496+
497+ ScrolledComposite sc = new ScrolledComposite(tabFolder, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
498+ sc.setLayoutData(new GridData(GridData.FILL_BOTH));
497499 Composite c = new Composite(sc, SWT.NO);
498500 GridLayout layout = new GridLayout(1, false);
499501 layout.verticalSpacing = 5;
@@ -501,10 +503,10 @@
501503 layout.marginWidth = 0;
502504 layout.marginHeight = 0;
503505 c.setLayout(layout);
504- c.setLayoutData(new GridData(GridData.FILL_BOTH));
506+ c.setLayoutData(new GridData(GridData.FILL_BOTH));
505507
506- Text text = new Text(c, SWT.NO | SWT.MULTI);
507- GridData gd = new GridData(GridData.FILL_BOTH);
508+ Text text = new Text(c, SWT.NO | SWT.WRAP);
509+ GridData gd = new GridData(GridData.FILL_BOTH);
508510 text.setLayoutData(gd);
509511 text.setText(str);
510512 text.setEditable(false);
--- DBViewer/branches/2.0.0/src/zigen/plugin/db/ui/editors/internal/FillCellEditorUtil.java (revision 264)
+++ DBViewer/branches/2.0.0/src/zigen/plugin/db/ui/editors/internal/FillCellEditorUtil.java (revision 265)
@@ -22,6 +22,7 @@
2222 import zigen.plugin.db.core.ResultSetUtil;
2323 import zigen.plugin.db.core.SQLCreator;
2424 import zigen.plugin.db.core.StatementUtil;
25+import zigen.plugin.db.core.TableColumn;
2526 import zigen.plugin.db.core.TableElement;
2627 import zigen.plugin.db.core.UpdateSQLInvoker;
2728 import zigen.plugin.db.ui.editors.exceptions.ZeroUpdateException;
@@ -115,9 +116,18 @@
115116 IDBConfig config = tableElement.getTable().getDbConfig();
116117 con = ConnectionManager.getConnection(config);
117118 String sql = SQLCreator.createSelectSql(tableElement, false);
118-
119+
120+
119121 st = con.createStatement();
120- rs = st.executeQuery(sql);
122+ rs = st.executeQuery(sql);
123+
124+ TableColumn[] uniqueColumns = tableElement.getUniqueColumns();
125+ System.out.println("uniqueColumns size is " + uniqueColumns.length);
126+ Object[] uniqueItems = tableElement.getUniqueItems();
127+ System.out.println("uniqueItem size is " + uniqueItems.length);
128+
129+ System.out.println("[1]sql:" + sql);
130+
121131 if (rs.next()) {
122132
123133 switch (dataType) {
旧リポジトリブラウザで表示