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

Formatting

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