]> git.koha-community.org Git - koha.git/commit
Bug 26997: CAST AS CHAR to prevent the error
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 19 Feb 2021 09:52:45 +0000 (10:52 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Thu, 18 Mar 2021 20:07:04 +0000 (21:07 +0100)
commit7ee274001b408ea4804f43831adefde66a70dd62
treeb59995054527bfa2c8c6272e49a444e5f2802830
parentbc5910ee5e53421cfbf40ec980ebe8953e3fc5ab
Bug 26997: CAST AS CHAR to prevent the error

To prevent the DBMS to fail on 0000-00-00 we can cast it as a char and
compare.
This patch also moves to a subroutine, in case we need to adjust (or
reuse) it later.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0a40b4bb509c306794930ef734513a982e418af5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9327130853613d5518326fddcabb1ef153daacbd)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit d4a5f258b632fabda11ba3fb53d8dfd03af07ef2)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
installer/data/mysql/updatedatabase.pl