提交 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."
"Functions (System)","ARRAY_CONTAINS","
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","
AUTOCOMMIT()
","
......
......@@ -650,6 +650,7 @@ public class Column {
* Check whether the new column is of the same type and not more restricted
* than this column.
*
* @param newColumn the new (target) column
* @return true if the new column is compatible
*/
public boolean isWideningConversion(Column newColumn) {
......@@ -689,26 +690,31 @@ public class Column {
return true;
}
public void copy(Column newColumn) {
checkConstraint = newColumn.checkConstraint;
checkConstraintSQL = newColumn.checkConstraintSQL;
displaySize = newColumn.displaySize;
name = newColumn.name;
precision = newColumn.precision;
scale = newColumn.scale;
/**
* Copy the data of the source column into the current column.
*
* @param source the source column
*/
public void copy(Column source) {
checkConstraint = source.checkConstraint;
checkConstraintSQL = source.checkConstraintSQL;
displaySize = source.displaySize;
name = source.name;
precision = source.precision;
scale = source.scale;
// table is not set
// columnId is not set
nullable = newColumn.nullable;
defaultExpression = newColumn.defaultExpression;
originalSQL = newColumn.originalSQL;
nullable = source.nullable;
defaultExpression = source.defaultExpression;
originalSQL = source.originalSQL;
// autoIncrement, start, increment is not set
convertNullToDefault = newColumn.convertNullToDefault;
sequence = newColumn.sequence;
comment = newColumn.comment;
computeTableFilter = newColumn.computeTableFilter;
isComputed = newColumn.isComputed;
selectivity = newColumn.selectivity;
primaryKey = newColumn.primaryKey;
convertNullToDefault = source.convertNullToDefault;
sequence = source.sequence;
comment = source.comment;
computeTableFilter = source.computeTableFilter;
isComputed = source.isComputed;
selectivity = source.selectivity;
primaryKey = source.primaryKey;
}
}
......@@ -137,7 +137,8 @@ public class TestAlter extends TestBase {
}
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("alter table t alter column x varchar(20)");
stat.execute("insert into t values('Hello')");
......
......@@ -128,7 +128,8 @@ public class TestBackup extends TestBase {
// ignore
}
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 {
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);
String selfDestruct = SelfDestructor.getPropertyString(60);
String[] procDef = { "java", selfDestruct,
......
......@@ -696,4 +696,4 @@ pst patadia summertime jalpesh scheme compilable ski takanori dsts kawashima
kokoci seldom jaros ciphers srcs invectorate noah nfontes fontes recoding
minecraft videos youtube dataflyer bukkit alessio adamo jacopo angel leon frost
deserializing eckenfelder daniel serodio dirname semicolons whose stretch
stabilize succeeded
stabilize succeeded widening optimise deprecate increasing
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论