You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The legacy MySQLdb1 raises an IntegrityError when doing a null insert in a not-nullable column. Apparently, this fork is raising OperationalError. The old behavior should be restored if possible.
The text was updated successfully, but these errors were encountered:
In [28]: try:
....: cur.execute("INSERT INTO model_fields_booleanmodel (bfield, string) values (NULL, 'xyz')")
....: except Exception as e:
....: exc = e
In [29]: e
Out[29]:
_mysql_exceptions.OperationalError(_mysql_exceptions.OperationalError(1048,
"Column 'bfield' cannot be null"))
In [30]: e.args
Out[30]: (_mysql_exceptions.OperationalError(1048, "Column 'bfield' cannot be null"),)
In [31]: e.args[0]
Out[31]: _mysql_exceptions.OperationalError(1048, "Column 'bfield' cannot be null")
In [32]: e.args[0][0]
Out[32]: 1048
The legacy MySQLdb1 raises an IntegrityError when doing a null insert in a not-nullable column. Apparently, this fork is raising OperationalError. The old behavior should be restored if possible.
The text was updated successfully, but these errors were encountered: