I'm running this sample code I found while googling:
SELECT MD5(RAND())
But, to my surprise, MD5 is returning plain digits, instead of hexadecimal digits.
Using CONV(MD5(RAND()), 10, 16)
seems to solve my problem, but the MySQL documentation states that the MD5 function should return a string already in hexadecimal.
Am I doing something wrong?
EDIT2: This problem only appears to exist with phpMyAdmin, not the command-line version of MySQL.
EDIT: My MySQL version:
mysql --version
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (x86_64) using readline 6.1
An example MD5 value:
6338666264663132376461666163313063656535633666616266396530613335
Also, CONV returns a very VERY short string, like:
B9
This string is often single-digit and the longest I got until now was 5 digits.