I have a problem with Mysql table. First of all my server version 5.6.17 and I use PHPmyadmin 4.2.0 to manage it on PHP version 5.5.12 and the database client that PHPmyadmin use: Database client version: libmysql - mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $ and the PHP extension used is in phpmyadmin mysqli
The problem is when changing or setting a numerical field to be int or float using default value null and it accept null value it set it as 0 for fields without data supplied to it.
I use the following SQL:
ALTER TABLE `country` CHANGE `area` `area` INT(11) NULL DEFAULT NULL;
I expect to see NULL in the fields without data not to see 0 because this make some problems in the application when it check for NULL values but it find it 0. I tried to look for any announcement from MySQL about any bugs related for the version regarded but I couldn't find any thing.
0values will not be changed tonull. Only future values will benull