how to disable SET SQL_AUTO_IS_NULL = 0 query in older versions of django code example

Example: "SET SQL_AUTO_IS_NULL = 0" query problem

This is disabled by default in recent versions.

mysql> set @@sql_auto_is_null:=default;
Query OK, 0 rows affected (0.00 sec)

mysql> select @@sql_auto_is_null,@@version;
+--------------------+-----------+
| @@sql_auto_is_null | @@version |
+--------------------+-----------+
|                  0 | 5.8.0-m17 |
+--------------------+-----------+
1 row in set (0.00 sec)

Tags:

Sql Example