• R/O
  • SSH
  • HTTPS

dbviewer: コミット


コミットメタ情報

リビジョン249 (tree)
日時2011-07-17 13:10:36
作者zigen

ログメッセージ

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

変更サマリ

差分

--- DBViewer/trunk/test/zigen/plugin/db/core/rule/SymfowareSQLCreatorFactoryTest.java (revision 248)
+++ DBViewer/trunk/test/zigen/plugin/db/core/rule/SymfowareSQLCreatorFactoryTest.java (revision 249)
@@ -217,13 +217,13 @@
217217 table = createTable("SCOTT", "EMP");
218218 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
219219 f.setVisibleSchemaName(true);
220- sql = f.createCommentOnTableDDL("�R�����g�ł�");
220+ sql = f.createCommentOnTableDDL("コメント");
221221 assertEquals(null, sql);
222222
223223 table = createTable("SCOTT-1", "EMP-1");
224224 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
225225 f.setVisibleSchemaName(true);
226- sql = f.createCommentOnTableDDL("�R'�����g\"�ł�");
226+ sql = f.createCommentOnTableDDL("コメント");
227227 assertEquals(null, sql);
228228
229229 }
@@ -230,7 +230,7 @@
230230
231231 public void testCreateCommentOnColumnDDL() {
232232 table = createTable("SCOTT", "EMP");
233- table.addChild(createColumn("EMPNO", "NUMBER", null, "�R�����g"));
233+ table.addChild(createColumn("EMPNO", "NUMBER", null, "コメント"));
234234 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
235235 f.setVisibleSchemaName(true);
236236 sql = f.createCommentOnColumnDDL(table.getColumns()[0]);
@@ -237,7 +237,7 @@
237237 assertEquals(null, sql);
238238
239239 table = createTable("SCOTT-1", "EMP-1");
240- table.addChild(createColumn("EMPNO-1", "NUMBER", null, "�R'����\"�g"));
240+ table.addChild(createColumn("EMPNO-1", "NUMBER", null, "Comment"));
241241 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
242242 f.setVisibleSchemaName(true);
243243 sql = f.createCommentOnColumnDDL(table.getColumns()[0]);
@@ -263,7 +263,7 @@
263263
264264 public void testCreateRenameColumnDDL() {
265265 table = createTable("SCOTT", "EMP");
266- table.addChild(createColumn("EMPNO", "NUMBER", null, "�R�����g"));
266+ table.addChild(createColumn("EMPNO", "NUMBER", null, "コメント"));
267267 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
268268 f.setVisibleSchemaName(true);
269269
@@ -272,7 +272,7 @@
272272 assertEquals(null, sql);
273273
274274 table = createTable("SCOTT-1", "EMP-1");
275- table.addChild(createColumn("EMPNO-2", "NUMBER", null, "�R�����g"));
275+ table.addChild(createColumn("EMPNO-2", "NUMBER", null, "コメント"));
276276 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
277277 f.setVisibleSchemaName(true);
278278
@@ -283,11 +283,11 @@
283283
284284 public void testCreateAddColumnDDL() {
285285 table = createTable("SCOTT", "EMP");
286- table.addChild(createColumn("EMPNO", "CHAR", null, "�R�����g"));
286+ table.addChild(createColumn("EMPNO", "CHAR", null, "コメント"));
287287 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
288288 f.setVisibleSchemaName(true);
289289
290- Column newCol = createColumn("DEPTNO", "CHAR", null, "�R�����g");
290+ Column newCol = createColumn("DEPTNO", "CHAR", null, "コメント");
291291 newCol.setSize("1");
292292 String[] sqls;
293293 sqls = f.createAddColumnDDL(newCol);
@@ -294,16 +294,16 @@
294294 assertEquals(null, sqls);
295295
296296
297- newCol = createColumn("DEPTNO", "VARCHAR", "123", "�R�����g");
297+ newCol = createColumn("DEPTNO", "VARCHAR", "123", "コメント");
298298 newCol.setSize("1");
299299 sqls = f.createAddColumnDDL(newCol);
300300 assertEquals(null, sqls);
301301
302302 table = createTable("SCOTT-1", "EMP-1");
303- table.addChild(createColumn("EMPNO", "VARCHAR", null, "�R�����g"));
303+ table.addChild(createColumn("EMPNO", "VARCHAR", null, "コメント"));
304304 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
305305 f.setVisibleSchemaName(true);
306- newCol = createColumn("DEPTNO-1", "VARCHAR", null, "�R�����g");
306+ newCol = createColumn("DEPTNO-1", "VARCHAR", null, "コメント");
307307 newCol.setSize("1");
308308 sqls = f.createAddColumnDDL(newCol);
309309 assertEquals(null, sqls);
@@ -313,7 +313,7 @@
313313 public void testCreateModifyColumnDDL() {
314314 table = createTable("SCOTT", "EMP");
315315
316- Column fromCol = createColumn("EMPNO", "NUMBER", null, "�R�����g");
316+ Column fromCol = createColumn("EMPNO", "NUMBER", null, "コメント");
317317 fromCol.setSize("1");
318318 table.addChild(fromCol);
319319
@@ -321,7 +321,7 @@
321321 f.setVisibleSchemaName(true);
322322
323323 // ���O�͂����ł͕ς����Ȃ�(ALTER TABLE RENAME COLUMN���g����j
324- Column toCol = createColumn("EMONO", "VARCHAR2", "abc", "�R�����g2");
324+ Column toCol = createColumn("EMONO", "VARCHAR2", "abc", "コメント2");
325325 toCol.setSize("10");
326326 toCol.setNotNull(true);
327327 String[] sqls;
@@ -331,7 +331,7 @@
331331
332332 table = createTable("SCOTT-1", "EMP-1");
333333
334- fromCol = createColumn("EMPNO-1", "NUMBER", null, "�R�����g");
334+ fromCol = createColumn("EMPNO-1", "NUMBER", null, "コメント");
335335 fromCol.setSize("1");
336336 table.addChild(fromCol);
337337
@@ -338,8 +338,7 @@
338338 f = AbstractSQLCreatorFactory.getFactory(table.getDbConfig(), table);
339339 f.setVisibleSchemaName(true);
340340
341- // ���O�͂����ł͕ς����Ȃ�(ALTER TABLE RENAME COLUMN���g����j
342- toCol = createColumn("EMONO-1", "VARCHAR2", "abc", "�R�����g2");
341+ toCol = createColumn("EMONO-1", "VARCHAR2", "abc", "コメント2");
343342 toCol.setSize("10");
344343 toCol.setNotNull(true);
345344
--- DBViewer/trunk/test/zigen/plugin/db/core/rule/OracleSQLCreatorFactoryTest.java (revision 248)
+++ DBViewer/trunk/test/zigen/plugin/db/core/rule/OracleSQLCreatorFactoryTest.java (revision 249)
@@ -315,7 +315,7 @@
315315 String[] sqls = f.createModifyColumnDDL(fromCol, toCol);
316316 assertEquals(3, sqls.length);
317317 assertEquals("ALTER TABLE SCOTT.EMP MODIFY (EMONO VARCHAR2(10))", sqls[0]);
318- assertEquals("ALTER TABLE SCOTT.EMP MODIFY (EMONO DEFAULT abc)", sqls[1]);
318+ assertEquals("ALTER TABLE SCOTT.EMP MODIFY (EMONO DEFAULT 'abc')", sqls[1]);
319319 assertEquals("ALTER TABLE SCOTT.EMP MODIFY (EMONO NOT NULL)", sqls[2]);
320320
321321
@@ -336,7 +336,7 @@
336336 sqls = f.createModifyColumnDDL(fromCol, toCol);
337337 assertEquals(3, sqls.length);
338338 assertEquals("ALTER TABLE \"SCOTT-1\".\"EMP-1\" MODIFY (\"EMONO-1\" VARCHAR2(10))", sqls[0]);
339- assertEquals("ALTER TABLE \"SCOTT-1\".\"EMP-1\" MODIFY (\"EMONO-1\" DEFAULT abc)", sqls[1]);
339+ assertEquals("ALTER TABLE \"SCOTT-1\".\"EMP-1\" MODIFY (\"EMONO-1\" DEFAULT 'abc')", sqls[1]);
340340 assertEquals("ALTER TABLE \"SCOTT-1\".\"EMP-1\" MODIFY (\"EMONO-1\" NOT NULL)", sqls[2]);
341341
342342 }
旧リポジトリブラウザで表示