Fix get_canonical bug in treating decimal numbers
"select 1.", became "select 1.", should be "select ?"
This commit is contained in:
@ -1368,9 +1368,8 @@ static inline std::pair<bool, uint8_t*> probe_number(uint8_t* it, uint8_t* end)
|
|||||||
|
|
||||||
if (next_it != end && !is_digit(*next_it))
|
if (next_it != end && !is_digit(*next_it))
|
||||||
{
|
{
|
||||||
/** No number after the period, not a decimal number.
|
/** The fractional part of a decimal is optional in MariaDB. */
|
||||||
* The fractional part of the number is optional in MariaDB. */
|
rval.second = it;
|
||||||
rval.first = false;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
mxb_assert(is_digit(*next_it));
|
mxb_assert(is_digit(*next_it));
|
||||||
|
Reference in New Issue
Block a user