Fix get_canonical bug in treating decimal numbers

"select 1.", became "select 1.", should be "select ?"
This commit is contained in:
Niclas Antti
2021-02-15 14:31:09 +02:00
parent 4724a0c79a
commit 3e7b8fcdc6

View File

@ -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));