On 23 Jun 2016 4:02 am, "Sergei Golubchik" <serg@mariadb.org> wrote:
>
> Hi, Jesse!
>
> This is done in our my_gcvt() function.
>
> Its goal is to minimize the information loss, given the limited target
> column length. There are different cases to consider, comments in the
> function explain some of them.
>

That's the code I'm looking for! It's fascinating reading code that I've spent much time trying to replicate the behaviour of. I got it pretty close.

Thanks!

> Regards,
> Sergei
> Chief Architect MariaDB
> and security@mariadb.org