If you pass the value '01' into a VARCHAR column in MySQL it will be stored
Are you sure that your application isn't performing anything that might be
considered "arithmatic" on the variable holding the value? This is the most
common way that a loosely typed language will behave with leading zeros.