From 3e37c422fcf15f4a5fa03e16cfdc7b7e2d5afbbe Mon Sep 17 00:00:00 2001 From: tonnesen Date: Mon, 19 Nov 2001 23:28:59 +0000 Subject: [PATCH] Added code to determine mysqld version for possibility of converting databases to MyISAM format --- updater/updatedatabase | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/updater/updatedatabase b/updater/updatedatabase index 25d9959b2e..570d7e2d17 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -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) { -- 2.39.2