After upgrading MySql 5.5 to 5.7 I faced with issue of fail insert query in my database schema, using php 7.1.
Query worked fine on 5.5 version but 5.7 throws exception:
message:protected: (string) SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'is_on_demand' at row 1
is_on_demand is tinyint(1) type
Why is 5.7 disallowing inserting empty string as false value, considering that 5.5 allowed this?
sql_mode = "NO_ZERO_IN_DATE,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
into my mysql configuration under debian. – Lululu