https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38384 --- Comment #18 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- (In reply to Philip Orr from comment #17)
@David I think Nick means the "TableExists" here: https://bugs.koha-community.org/bugzilla3/attachment. cgi?id=174282&action=diff&headers=0#a/C4/Context.pm_sec3
Yeah, just suggesting we could use existing code in C4/Installer: 719 sub TableExists { # Could be renamed table_exists for consistency 720 my $table = shift; 721 eval { 722 my $dbh = C4::Context->dbh; 723 local $dbh->{PrintError} = 0; 724 local $dbh->{RaiseError} = 1; 725 $dbh->do(qq{SELECT * FROM $table WHERE 1 = 0 }); 726 }; 727 return 1 unless $@; 728 return 0; -- You are receiving this mail because: You are watching all bug changes.