提交 abe8ba70 authored 作者: Thomas Mueller's avatar Thomas Mueller

Use common words (spellcheck)

上级 1631f879
...@@ -153,8 +153,8 @@ public class TestAlter extends TestBase { ...@@ -153,8 +153,8 @@ public class TestAlter extends TestBase {
private void testAlterTableAddColumnBefore() throws SQLException { private void testAlterTableAddColumnBefore() throws SQLException {
stat.execute("create table T(X varchar)"); stat.execute("create table T(X varchar)");
stat.execute("alter table T add Y int before X"); stat.execute("alter table T add Y int before X");
DatabaseMetaData dbmeta = conn.getMetaData(); DatabaseMetaData dbMeta = conn.getMetaData();
ResultSet rs = dbmeta.getColumns(null, null, "T", null); ResultSet rs = dbMeta.getColumns(null, null, "T", null);
assertTrue(rs.next()); assertTrue(rs.next());
assertEquals("Y", rs.getString("COLUMN_NAME")); assertEquals("Y", rs.getString("COLUMN_NAME"));
assertTrue(rs.next()); assertTrue(rs.next());
...@@ -167,8 +167,8 @@ public class TestAlter extends TestBase { ...@@ -167,8 +167,8 @@ public class TestAlter extends TestBase {
private void testAlterTableAddColumnAfter() throws SQLException { private void testAlterTableAddColumnAfter() throws SQLException {
stat.execute("create table T(X varchar)"); stat.execute("create table T(X varchar)");
stat.execute("alter table T add Y int after X"); stat.execute("alter table T add Y int after X");
DatabaseMetaData dbmeta = conn.getMetaData(); DatabaseMetaData dbMeta = conn.getMetaData();
ResultSet rs = dbmeta.getColumns(null, null, "T", null); ResultSet rs = dbMeta.getColumns(null, null, "T", null);
assertTrue(rs.next()); assertTrue(rs.next());
assertEquals("X", rs.getString("COLUMN_NAME")); assertEquals("X", rs.getString("COLUMN_NAME"));
assertTrue(rs.next()); assertTrue(rs.next());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论