projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c910f99
)
Added code to determine mysqld version for possibility of converting
author
tonnesen
<tonnesen>
Mon, 19 Nov 2001 23:28:59 +0000
(23:28 +0000)
committer
tonnesen
<tonnesen>
Mon, 19 Nov 2001 23:28:59 +0000
(23:28 +0000)
databases to MyISAM format
updater/updatedatabase
patch
|
blob
|
history
diff --git
a/updater/updatedatabase
b/updater/updatedatabase
index
25d9959
..
570d7e2
100755
(executable)
--- 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) {