Bug 4141 Reconcile 3.0.x and HEAD database updates for 3.2.0
authorChris Nighswonger <cnighswonger@foundations.edu>
Wed, 12 May 2010 12:00:50 +0000 (08:00 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 13 May 2010 19:22:34 +0000 (07:22 +1200)
commitd65db54e06f520a6e67608f9d3693b9476617dc9
treeb01e25a394cf760c115534bb44ae7d3415faf7b2
parent172cd6fe92584e615e37da1b706ec1701c523a2c
Bug 4141 Reconcile 3.0.x and HEAD database updates for 3.2.0

This is a partial fix addressing this error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 at /home/koha/koha.prod/installer/data/mysql/updatedatabase.pl line 2916., referer: http://koha-staff.foobar.org/cgi-bin/koha/installer/install.pl

If there are no records in aqbudgets the result is an empty array which causes the sql to attempt to set AUTOINCREMENT to null.

This patch is being submitted on behalf of the Mapua Community Library.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
installer/data/mysql/updatedatabase.pl