Parsing of floating point numbers fails in the following legal query:
select webid, floor(iz/2.) as fl from MDR1.Tweb512 as w where w.webid < 100
but not in
select webid, floor(iz/2.0) as fl from MDR1.Tweb512 as w where w.webid < 100
Problem lies in lexer->concatColReferences where everything after a "." is
considered part of a column reference.
Solution:
299: if ($this->endsWith($tokens[$i], '.') && !is_numeric($tokens[$i])) {
instead of
299: if ($this->endsWith($tokens[$i], '.')) {
Original issue reported on code.google.com by adrian.p...@googlemail.com on 3 Sep 2013 at 8:21
Original issue reported on code.google.com by
adrian.p...@googlemail.com
on 3 Sep 2013 at 8:21