Added code to determine mysqld version for possibility of converting

databases to MyISAM format
This commit is contained in:
tonnesen 2001-11-19 23:28:59 +00:00
parent c910f99b9b
commit 3e37c422fc
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ my $dbh=C4Connect;
my %tables;
my %types;
my $mysqlversion=`mysqld --version`;
$mysqlversion=~/Ver (\S*) /;
$mysqlversion=$1;
if ($mysqlversion ge '3.23') {
print "Could convert to MyISAM database tables...\n";
}
my $sth=$dbh->prepare("show tables");
$sth->execute;
while (my ($table) = $sth->fetchrow) {