MySQL float expressions.
This commit is contained in:
parent
6bf9c32c07
commit
163ecf4c42
13 changed files with 401 additions and 85 deletions
76
tests/testdata/common/float_operators.json
vendored
Normal file
76
tests/testdata/common/float_operators.json
vendored
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
[
|
||||
{
|
||||
"Eq1": true,
|
||||
"Eq2": false,
|
||||
"Eq3": false,
|
||||
"Distinct1": false,
|
||||
"Distinct2": true,
|
||||
"Distinct3": true,
|
||||
"NotDistinct1": true,
|
||||
"NotDistinct2": false,
|
||||
"NotDistinct3": false,
|
||||
"Lt1": true,
|
||||
"Lt2": true,
|
||||
"Gt1": false,
|
||||
"Gt2": false,
|
||||
"Add1": 2.22,
|
||||
"Add2": 12.33,
|
||||
"Sub1": 0,
|
||||
"Sub2": -10.11,
|
||||
"Mul1": 1.23,
|
||||
"Mul2": 12.45,
|
||||
"Div1": 1,
|
||||
"Div2": 0.09,
|
||||
"Mod1": 0,
|
||||
"Mod2": 1.11,
|
||||
"Pow1": 1.12,
|
||||
"Pow2": 1.24,
|
||||
"Abs": 1.11,
|
||||
"Power": 1.24,
|
||||
"Sqrt": 1.05,
|
||||
"Cbrt": 1.03,
|
||||
"Ceil": 6,
|
||||
"Floor": 5,
|
||||
"Round1": 1,
|
||||
"Round2": 1.11,
|
||||
"Sign": 1,
|
||||
"Trunc": 1.1
|
||||
},
|
||||
{
|
||||
"Eq1": true,
|
||||
"Eq2": false,
|
||||
"Eq3": false,
|
||||
"Distinct1": false,
|
||||
"Distinct2": true,
|
||||
"Distinct3": true,
|
||||
"NotDistinct1": true,
|
||||
"NotDistinct2": false,
|
||||
"NotDistinct3": false,
|
||||
"Lt1": true,
|
||||
"Lt2": true,
|
||||
"Gt1": false,
|
||||
"Gt2": false,
|
||||
"Add1": 2.22,
|
||||
"Add2": 12.33,
|
||||
"Sub1": null,
|
||||
"Sub2": -10.11,
|
||||
"Mul1": null,
|
||||
"Mul2": 12.45,
|
||||
"Div1": null,
|
||||
"Div2": 0.09,
|
||||
"Mod1": null,
|
||||
"Mod2": 1.11,
|
||||
"Pow1": null,
|
||||
"Pow2": 1.24,
|
||||
"Abs": 1.11,
|
||||
"Power": 1.24,
|
||||
"Sqrt": 1.05,
|
||||
"Cbrt": 1.03,
|
||||
"Ceil": 6,
|
||||
"Floor": 5,
|
||||
"Round1": 1,
|
||||
"Round2": 1.11,
|
||||
"Sign": 1,
|
||||
"Trunc": 1.1
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue