We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-.12
BUG
当前最新分支上,io.shardingjdbc.core.parsing.lexer.Lexer中代码:
private boolean isNumberBegin() { return CharType.isDigital(getCurrentChar(0)) || ('.' == getCurrentChar(0) && CharType.isDigital(getCurrentChar(1)) && !isIdentifierBegin(getCurrentChar(-1)) || ('-' == getCurrentChar(0) && ('.' == getCurrentChar(0) || CharType.isDigital(getCurrentChar(1))))); }
最后一个判断负数的逻辑,应该是 ('-' == getCurrentChar(0) && ('.' == getCurrentChar(1) || CharType.isDigital(getCurrentChar(1)))),才能解析出 -.12 这种情况
('-' == getCurrentChar(0) && ('.' == getCurrentChar(1) || CharType.isDigital(getCurrentChar(1))))
The text was updated successfully, but these errors were encountered:
能否提供pr和相关的测试用例?
Sorry, something went wrong.
没有pr。只是看源码和写了个main测试的。
可以的话还是提交一个pull request吧。开源重在参与
好的。
Merge pull request #564 from hongfuli/bugfix_559
6edc766
For issue #559
fixed at 2.0.2
mty2015
No branches or pull requests
BUG
当前最新分支上,io.shardingjdbc.core.parsing.lexer.Lexer中代码:
最后一个判断负数的逻辑,应该是
('-' == getCurrentChar(0) && ('.' == getCurrentChar(1) || CharType.isDigital(getCurrentChar(1))))
,才能解析出-.12
这种情况The text was updated successfully, but these errors were encountered: