提交 00101bcf authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 8021286e
......@@ -1904,7 +1904,7 @@ public class ErrorCode {
* The error with code <code>90142</code> is thrown when
* trying to set zero for step size.
*/
public static final int STEP_SIZE_SHOUD_NOT_BE_ZERO = 90142;
public static final int STEP_SIZE_MUST_NOT_BE_ZERO = 90142;
// next are 90039, 90051, 90056, 90110, 90122, 90143
......
......@@ -267,7 +267,7 @@ public abstract class Expression {
*
* @return if the related expression has the logic operator OR.
*/
public boolean isDisjunctive(){
public boolean isDisjunctive() {
return false;
}
......
......@@ -338,7 +338,7 @@ public class IndexCondition {
* @param constantExpression if the inner node is a constant expression
* @return true if this is a equality condition
*/
public boolean isEquality(boolean constantExpression){
public boolean isEquality(boolean constantExpression) {
switch (compareType) {
case Comparison.EQUAL:
case Comparison.EQUAL_NULL_SAFE:
......
......@@ -163,7 +163,7 @@
90139=The public static Java method was not found: {0}
90140=The result set is readonly. You may need to use conn.createStatement(.., ResultSet.CONCUR_UPDATABLE).
90141=Serializer cannot be changed because there is a data table: {0}
90142=Step size should not be zero
90142=Step size must not be zero
HY000=General error: {0}
HY004=Unknown data type: {0}
HYC00=Feature not supported: {0}
......
......@@ -151,7 +151,7 @@ public class RangeTable extends Table {
@Override
public Index getScanIndex(Session session) {
if (getStep(session) == 0) {
throw DbException.get(ErrorCode.STEP_SIZE_SHOUD_NOT_BE_ZERO);
throw DbException.get(ErrorCode.STEP_SIZE_MUST_NOT_BE_ZERO);
}
return new RangeIndex(this, IndexColumn.wrap(columns));
}
......
......@@ -492,10 +492,10 @@ public class TableFilter implements ColumnResolver {
* @param column The column of the condition
* @return the filtered list
*/
public ArrayList<IndexCondition> getIndexConditionsForColumn(Column column){
public ArrayList<IndexCondition> getIndexConditionsForColumn(Column column) {
ArrayList<IndexCondition> conditions = New.arrayList(indexConditions.size());
for (IndexCondition condition: indexConditions){
if (column.equals(condition.getColumn())){
for (IndexCondition condition: indexConditions) {
if (column.equals(condition.getColumn())) {
conditions.add(condition);
}
}
......
......@@ -1652,7 +1652,7 @@ public class TestFunctions extends TestBase implements AggregateFunction {
rs = stat.executeQuery("select * from system_range(1,2,-1)");
assertFalse(rs.next());
assertThrows(ErrorCode.STEP_SIZE_SHOUD_NOT_BE_ZERO, stat).executeQuery(
assertThrows(ErrorCode.STEP_SIZE_MUST_NOT_BE_ZERO, stat).executeQuery(
"select * from system_range(1,2,0)");
rs = stat.executeQuery("select * from system_range(2,1,-1)");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论