提交 141eb744 authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation

上级 1fe8e8cf
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1234,7 +1234,7 @@ Returns the length of an array." ...@@ -1234,7 +1234,7 @@ Returns the length of an array."
"Functions (System)","ARRAY_CONTAINS"," "Functions (System)","ARRAY_CONTAINS","
ARRAY_CONTAINS(arrayExpression, value) ARRAY_CONTAINS(arrayExpression, value)
"," ","
Returns true if the array contains the value." Returns a boolean true if the array contains the value."
"Functions (System)","AUTOCOMMIT"," "Functions (System)","AUTOCOMMIT","
AUTOCOMMIT() AUTOCOMMIT()
"," ","
......
...@@ -650,6 +650,7 @@ public class Column { ...@@ -650,6 +650,7 @@ public class Column {
* Check whether the new column is of the same type and not more restricted * Check whether the new column is of the same type and not more restricted
* than this column. * than this column.
* *
* @param newColumn the new (target) column
* @return true if the new column is compatible * @return true if the new column is compatible
*/ */
public boolean isWideningConversion(Column newColumn) { public boolean isWideningConversion(Column newColumn) {
...@@ -689,26 +690,31 @@ public class Column { ...@@ -689,26 +690,31 @@ public class Column {
return true; return true;
} }
public void copy(Column newColumn) { /**
checkConstraint = newColumn.checkConstraint; * Copy the data of the source column into the current column.
checkConstraintSQL = newColumn.checkConstraintSQL; *
displaySize = newColumn.displaySize; * @param source the source column
name = newColumn.name; */
precision = newColumn.precision; public void copy(Column source) {
scale = newColumn.scale; checkConstraint = source.checkConstraint;
checkConstraintSQL = source.checkConstraintSQL;
displaySize = source.displaySize;
name = source.name;
precision = source.precision;
scale = source.scale;
// table is not set // table is not set
// columnId is not set // columnId is not set
nullable = newColumn.nullable; nullable = source.nullable;
defaultExpression = newColumn.defaultExpression; defaultExpression = source.defaultExpression;
originalSQL = newColumn.originalSQL; originalSQL = source.originalSQL;
// autoIncrement, start, increment is not set // autoIncrement, start, increment is not set
convertNullToDefault = newColumn.convertNullToDefault; convertNullToDefault = source.convertNullToDefault;
sequence = newColumn.sequence; sequence = source.sequence;
comment = newColumn.comment; comment = source.comment;
computeTableFilter = newColumn.computeTableFilter; computeTableFilter = source.computeTableFilter;
isComputed = newColumn.isComputed; isComputed = source.isComputed;
selectivity = newColumn.selectivity; selectivity = source.selectivity;
primaryKey = newColumn.primaryKey; primaryKey = source.primaryKey;
} }
} }
...@@ -137,7 +137,8 @@ public class TestAlter extends TestBase { ...@@ -137,7 +137,8 @@ public class TestAlter extends TestBase {
} }
private void testAlterTableAlterColumn2() throws SQLException { private void testAlterTableAlterColumn2() throws SQLException {
// ensure that increasing a VARCHAR columns length takes effect because we optimise this case // ensure that increasing a VARCHAR columns length takes effect because
// we optimize this case
stat.execute("create table t(x varchar(2)) as select 'x'"); stat.execute("create table t(x varchar(2)) as select 'x'");
stat.execute("alter table t alter column x varchar(20)"); stat.execute("alter table t alter column x varchar(20)");
stat.execute("insert into t values('Hello')"); stat.execute("insert into t values('Hello')");
......
...@@ -128,7 +128,8 @@ public class TestBackup extends TestBase { ...@@ -128,7 +128,8 @@ public class TestBackup extends TestBase {
// ignore // ignore
} }
if (x % 400 == 0) { if (x % 400 == 0) {
// System.out.println("state: " + state + " name: " + name + " x:" + x + "/" + max); // System.out.println("state: " + state +
// " name: " + name + " x:" + x + "/" + max);
} }
} }
......
...@@ -70,7 +70,7 @@ public class TestFileLockProcess extends TestBase { ...@@ -70,7 +70,7 @@ public class TestFileLockProcess extends TestBase {
deleteDb("lock"); deleteDb("lock");
} }
public void test(int count, String url) throws Exception { private void test(int count, String url) throws Exception {
Connection conn = DriverManager.getConnection(url); Connection conn = DriverManager.getConnection(url);
String selfDestruct = SelfDestructor.getPropertyString(60); String selfDestruct = SelfDestructor.getPropertyString(60);
String[] procDef = { "java", selfDestruct, String[] procDef = { "java", selfDestruct,
......
...@@ -696,4 +696,4 @@ pst patadia summertime jalpesh scheme compilable ski takanori dsts kawashima ...@@ -696,4 +696,4 @@ pst patadia summertime jalpesh scheme compilable ski takanori dsts kawashima
kokoci seldom jaros ciphers srcs invectorate noah nfontes fontes recoding kokoci seldom jaros ciphers srcs invectorate noah nfontes fontes recoding
minecraft videos youtube dataflyer bukkit alessio adamo jacopo angel leon frost minecraft videos youtube dataflyer bukkit alessio adamo jacopo angel leon frost
deserializing eckenfelder daniel serodio dirname semicolons whose stretch deserializing eckenfelder daniel serodio dirname semicolons whose stretch
stabilize succeeded stabilize succeeded widening optimise deprecate increasing
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论