Question: I need to allow saving null as integer value on mysql server, how can I do this?

Answer: 
I found out how:
I hided the line below then restarted the sql server and it worked.

> 
> # Set the SQL mode to strict 
>  sql-mode="STRICT\_TRANS\_TABLES,NO\_AUTO\_CREATE\_USER,NO\_ENGINE\_SUBSTITUTION"
> 
> 
> 

Note this line is found in my.ini file.
Set the field to not null and set its default to zero:

```
CREATE TABLE `t` (
    `foo` BIGINT NOT NULL DEFAULT 0
);

```

Value of `foo` will be zero if you send it NULL.