]> git.koha-community.org Git - koha.git/commit
Bug 21336: (follow-up) Handle strict SQL mode in _anonymize_column
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 17 Dec 2018 08:15:29 +0000 (09:15 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 17 Apr 2019 12:25:24 +0000 (12:25 +0000)
commitaf84af7cb7cd7ade4054ad155963db4d1ecd6272
tree09f3e2d756f2093feb788445b1391ffdb4282b76
parent23db9b1d67ee9bf1927bfd7f11da46886d51999b
Bug 21336: (follow-up) Handle strict SQL mode in _anonymize_column

When a field is not nullable we should pass empty string, zero or today
to a char, numeric or date column.
The mandatory parameter does not refer to a database constraint but a Koha
preference. Only for strings we generate a random value.

Test plan:
Enable strict_sql_modes.
Run t/db_dependent/Koha/Patrons.t again.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Patron.pm