Check for MySQL 4.1 or newer only

(3.23 does not work as we supposed it did).

--HG--
extra : convert_revision : d87dbebe0b2387fde1f8aba52625d115d31baf1a
This commit is contained in:
Steve Reinhardt 2005-11-03 13:13:31 -05:00
parent cb929af345
commit d9f94e966b

View file

@ -202,10 +202,8 @@ if have_mysql:
mysql_minor = int(mysql_version[1]) mysql_minor = int(mysql_version[1])
# This version check is probably overly conservative, but it deals # This version check is probably overly conservative, but it deals
# with the versions we have installed. # with the versions we have installed.
if mysql_major < 3 or \ if mysql_major < 4 or (mysql_major == 4 and mysql_minor < 1):
mysql_major == 3 and mysql_minor < 23 or \ print "Warning: MySQL v4.1 or newer required."
mysql_major == 4 and mysql_minor < 1:
print "Warning: MySQL v3.23 or v4.1 or newer required."
have_mysql = False have_mysql = False
# Set up mysql_config commands. # Set up mysql_config commands.