860861862863864865866867868869870
new Row[] { testRow(cType, 1, "asdf"), testRow(cType, 5, "qwer"), testRow(cType, 10, "zxcv") }, adapter.newGroupCursor(cType.table().getGroup()) ); compareRows( new Row[] { testRow(oType, 10, 1, "a"),
874875876877878879880881882883884
testRow(oType, 11, 1, "b"), // none testRow(iType, 200, 20, "d"), testRow(oType, 60, 6, "c"), }, adapter.newGroupCursor(oType.table().getGroup()) ); } // bug1037308, part 1 @Test
12731274127512761277127812791280128112821283
testRow(cType, 3L, "c"), testRow(oType, "cc", 3L, 3L), testRow(cType, 4L, "d"), testRow(oType, "dd", 4L, 4L), }, adapter.newGroupCursor(cType.table().getGroup()) ); } @Test public void renameColumnWithNoPK() {
13271328132913301331133213331334133513361337
testRow(cType, "b", 0, pk++), testRow(cType, "c", 0, pk++), testRow(cType, "d", 0, pk++), testRow(cType, "e", 3, pk++), }, adapter.newGroupCursor(cType.table().getGroup()) ); } @Test public void dropPKColumn() {
13561357135813591360136113621363136413651366
testRow(cType, "b", pk++), testRow(cType, "c", pk++), testRow(cType, "d", pk++), testRow(cType, "e", pk++), }, adapter.newGroupCursor(cType.table().getGroup()) ); } @Test public void addPKColumnToPKLessTable() {
5354555657585960616263
Row[] expected = { new TestRow(t1Type, r1), new TestRow(t1Type, r2) }; compareRows(expected, adapter.newGroupCursor(t1Type.table().getGroup())); txnService().commitTransaction(session()); } }
253254255256257258259260
testRow(rowType, 1L, "Fred", SCHEMA), testRow(rowType, 2L, "Wilma", SCHEMA), testRow(rowType, 3L, "Barney", SCHEMA), testRow(rowType, 4L, "Betty", SCHEMA) }, adapter.newGroupCursor(table.getGroup())); } }