Skip to content

Scripting: Fix regression from #1118#1804

Merged
antirez merged 1 commit intoredis:unstablefrom
mattsta:lua-regression-1118
Jun 11, 2014
Merged

Scripting: Fix regression from #1118#1804
antirez merged 1 commit intoredis:unstablefrom
mattsta:lua-regression-1118

Conversation

@mattsta
Copy link
Contributor

@mattsta mattsta commented Jun 10, 2014

The new check-for-number behavior for Lua arguments broke
users who use large strings of just integers.

The Lua number check would convert the string to a number, but
that breaks user data because
Lua numbers have limited precision compared to an arbitrarily
precise number wrapped in a string.

Regression fixed and new test added.

Fixes #1118 again.

The new check-for-number behavior of Lua arguments broke
users who use large strings of just integers.

The Lua number check would convert the string to a number, but
that breaks user data because
Lua numbers have limited precision compared to an arbitrarily
precise number wrapped in a string.

Regression fixed and new test added.

Fixes redis#1118 again.
antirez added a commit that referenced this pull request Jun 11, 2014
@antirez antirez merged commit 3ac1dad into redis:unstable Jun 11, 2014
@antirez
Copy link
Contributor

antirez commented Jun 11, 2014

Thanks Matt, merged, I'll simplify the conditional as discussed in the original issue.

@mattsta mattsta deleted the lua-regression-1118 branch November 20, 2014 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lua to Redis integer conversion loses precision

2 participants