Bug 21079: (follow-up) Move from Try::Tiny to eval
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Thu, 8 Nov 2018 14:28:48 +0000 (14:28 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 8 Nov 2018 15:33:30 +0000 (15:33 +0000)
commit0372a9e95e7baf4e5699c372d1ba5550d351998d
tree53d4fc7ddd075ad51523496f38c9c4a10b62fc5f
parentfccbdf4daea0a2ecc227f5d32e4f858be3820e65
Bug 21079: (follow-up) Move from Try::Tiny to eval

In line with similar examples already in Koha, we now eval the
transaction, instead of putting it in a try/catch block.

This patch also addressed the other comments made in
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21079#c10

- AutoCommit & RaiseError are now reset
- Don't set the version if the update fails

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
installer/data/mysql/atomicupdate/bug_21079_map_illrequestattributes.perl