I've not looked at the code behind mysql_get_server_info(), but every version of mysql I've seen has 3 parts to the version number. It seems clear that the mysql version numbering scheme is release.version, where release is 3.23, 4.0, 4.1, or 5.0, and version is sequential. Assuming you'll always get a 3 part version seems safe to me.
Michael
Matthew Boehm wrote:
Will mysql_get_server_info() give you what you need? <http://dev.mysql.com/doc/mysql/en/mysql_get_server_info.html>
I guess I could use that and parse out on the . separator.
Will I always get a 3 . separated string? ie: X.XX.XX ? Or could I sometimes get X.XX?
Thanks, Matthew
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]