Skip to content
Snippets Groups Projects
Commit f89c1ce0 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge remote-tracking branch 'origin/gh-770'

parents 00056a58 1f5d3cfd
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,10 @@ box.schema.user.create('test', { password = 'test' })
box.schema.user.grant('test', 'execute,read,write', 'universe')
---
...
function f1() return 'testing', 1, false, -1, 1.123, 1e123, nil end
exp_notation = 1e123
---
...
function f1() return 'testing', 1, false, -1, 1.123, math.abs(exp_notation - 1e123) < 0.1, nil end
---
...
f1()
......@@ -14,7 +17,7 @@ f1()
- false
- -1
- 1.123
- 1e+123
- true
- null
...
call f1()
......@@ -24,7 +27,7 @@ call f1()
- [False]
- [-1]
- [1.123]
- [1e+123]
- [True]
- [None]
...
f1=nil
......
......@@ -4,7 +4,9 @@ import sys
admin("box.schema.user.create('test', { password = 'test' })")
admin("box.schema.user.grant('test', 'execute,read,write', 'universe')")
sql.authenticate('test', 'test')
admin("function f1() return 'testing', 1, false, -1, 1.123, 1e123, nil end")
# workaround for gh-770 centos 6 float representation
admin('exp_notation = 1e123')
admin("function f1() return 'testing', 1, false, -1, 1.123, math.abs(exp_notation - 1e123) < 0.1, nil end")
admin("f1()")
sql("call f1()")
admin("f1=nil")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment