Bug 7902 - Adding Function to Check for Existence of Tables
authorChris Nighswonger <cnighswonger@foundations.edu>
Thu, 5 Apr 2012 13:38:52 +0000 (09:38 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 13 Apr 2012 14:20:02 +0000 (16:20 +0200)
commit012c6df0015b68dfa390d6ed4faedbc42c8af9ce
treed481f4d7359bbc78f52793e1bc32815176dfdab4
parent382797340846c1455b7302f1c16945be0ba3af8d
Bug 7902 - Adding Function to Check for Existence of Tables

This patch adds a function TableExists which checks for the existence
of a given table and returns 1 or 0 accordingly. This allows us to
check for the existence of a given table when doing operations on
tables which may not exist in a given database which, in turn, will
reduce the number of red errors which show up after an upgrade.

An example of its use is included in this patch.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
installer/data/mysql/updatedatabase.pl