]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Thu, 4 Mar 2021 18:00:47 +0000 (18:00 +0000)
commitd4a5f258b632fabda11ba3fb53d8dfd03af07ef2
tree9c6654e5986748ef0b3d63b47732601171b91ab6
parent9a5927c322e2949f8b86461499bcc247a6572154
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>
installer/data/mysql/updatedatabase.pl