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

Support for the function CEIL (an alias for CEILING).

上级 799303c9
...@@ -2529,7 +2529,7 @@ MOD(A, B) ...@@ -2529,7 +2529,7 @@ MOD(A, B)
" "
"Functions (Numeric)","CEILING"," "Functions (Numeric)","CEILING","
CEILING(double) { CEILING | CEIL } (double)
"," ","
See also Java ""Math.ceil"". See also Java ""Math.ceil"".
This method returns a double. This method returns a double.
......
...@@ -17,7 +17,8 @@ Change Log ...@@ -17,7 +17,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Issue 315: Access to LOBs could cause a Java level deadlock. <ul><li>Support for the function CEIL (an alias for CEILING).
</li><li>Issue 315: Access to LOBs could cause a Java level deadlock.
</li><li>Support for the ICU4J collator. </li><li>Support for the ICU4J collator.
</li><li>Improved Oracle compatibility: support for NVL2. Thanks to litailang for the patch! </li><li>Improved Oracle compatibility: support for NVL2. Thanks to litailang for the patch!
</li><li>Improved PostgreSQL compatibility: support for RANDOM() in addition to RAND(). </li><li>Improved PostgreSQL compatibility: support for RANDOM() in addition to RAND().
......
...@@ -164,6 +164,7 @@ public class Function extends Expression implements FunctionCall { ...@@ -164,6 +164,7 @@ public class Function extends Expression implements FunctionCall {
addFunction("BITOR", BITOR, 2, Value.LONG); addFunction("BITOR", BITOR, 2, Value.LONG);
addFunction("BITXOR", BITXOR, 2, Value.LONG); addFunction("BITXOR", BITXOR, 2, Value.LONG);
addFunction("CEILING", CEILING, 1, Value.DOUBLE); addFunction("CEILING", CEILING, 1, Value.DOUBLE);
addFunction("CEIL", CEILING, 1, Value.DOUBLE);
addFunction("COS", COS, 1, Value.DOUBLE); addFunction("COS", COS, 1, Value.DOUBLE);
addFunction("COSH", COSH, 1, Value.DOUBLE); addFunction("COSH", COSH, 1, Value.DOUBLE);
addFunction("COT", COT, 1, Value.DOUBLE); addFunction("COT", COT, 1, Value.DOUBLE);
......
...@@ -8934,7 +8934,7 @@ select mod(null, 1) vn, mod(1, null) vn1, mod(null, null) vn2, mod(10, 2) e1 fro ...@@ -8934,7 +8934,7 @@ select mod(null, 1) vn, mod(1, null) vn1, mod(null, null) vn2, mod(10, 2) e1 fro
> null null null 0 > null null null 0
> rows: 1 > rows: 1
select ceiling(null) vn, ceiling(1) v1, ceiling(1.1) v2, ceiling(-1.1) v3, ceiling(1.9) v4, ceiling(-1.9) v5 from test; select ceil(null) vn, ceil(1) v1, ceiling(1.1) v2, ceil(-1.1) v3, ceiling(1.9) v4, ceiling(-1.9) v5 from test;
> VN V1 V2 V3 V4 V5 > VN V1 V2 V3 V4 V5
> ---- --- --- ---- --- ---- > ---- --- --- ---- --- ----
> null 1.0 2.0 -1.0 2.0 -1.0 > null 1.0 2.0 -1.0 2.0 -1.0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论