Re: JSON -> / ->> disparity; is this supposed to happen?
Posted by: Alfredo Kojima
Date: November 30, 2017 10:15PM

-> returns a JSON value, while ->> returns a SQL string. So during sorting, MySQL will still know that 1 11 and 2 are numbers, but once it goes through JSON_UNQUOTE() (which is what ->> does), the values will be turned into strings and compared as such during sorting.

--
Alfredo Kojima
MySQL Developer Tools

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: JSON -> / ->> disparity; is this supposed to happen?
404
November 30, 2017 10:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.