Issue Bug Closed

#69039Functional Tests: NEWid generation in tests does not match core

Morton Jonuschat 08/14/15, 09:35 updated 10/19/17, 21:51

Description

Datahandler uses: uniqid(‘NEW’, TRUE)
Tests use: ‘NEW’ . str_replace(‘.’, ‘’, uniqid(mt_rand(), TRUE))

The version in the tests generate IDs that are longer than permitted by the database, leading to test failures in MySQL strict mode and silent data truncation in non-strict MySQL operating mode.

Reviews 1