Skip to content
  • Cédric Anne's avatar
    Fix some errors triggering MySQL Warnings (#8415) · 71c4643a
    Cédric Anne authored
    * Fix some errors triggering MySQL Warnings
    * Permit usage of entity id when calling DbTestCase::setEntity()
    * Handle booleans values in DB request
    
    Fix "BLOB, TEXT, GEOMETRY or JSON column 'positions' can't have a default value"
    Fix "Incorrect integer value: '_test_root_entity' for column `glpi_profiles_users`.`entities_id` at row 1"
    Fix "Truncated incorrect DOUBLE value: ''" when tinyint is set to `false` instead of `0`
    Fix "Incorrect integer value: '' for column `xxx`.`users_id` at row 1" due to logout state in tests
    Fix "Incorrect integer value: '' for column `glpi_knowbaseitems_revisions`.`id` at row 1" during new KB revision creation
    Fix invalid entity selection in `tests\units\Appliance_Item_Relation::testCountForApplianceItem()`
    Fix "Incorrect integer value: 'N/A' for column `glpi`.`glpi_items_deviceprocessors`.`states_id` at row 1" in `tests\units\Computer::testUpdate()`
    Fix "Incorrect integer value: '' for column `glpi`.`glpi_logs`.`items_id` at row 1" in `tests\units\Computer::testClone()`
    Fix "Incorrect integer value: '' for column `glpi`.`glpi_groups_users`.`users_id` at row 1" in `tests\units\Group_User::testIsUserInGroup()`
    Fix "Column 'softwareversions_id_use' cannot be null"
    Fix "Data truncated for column 'entities_id' at row 1" in Log tests
    Fix "Field 'from', 'to', 'date' and 'messageid' doesn't have a default value"
    71c4643a