Modules/MTA-MySQL/mysql get server version: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ Returns a number that represents the MySQL server version in this format: major_version*10000 + minor_version *100 + sub_version For example, 5.0.12 is returned as 50012. This ...)
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{ModuleFunction|MTA-MySQL}}
Returns a number that represents the MySQL server version in this format:
Returns a number that represents the MySQL server version in this format:
  major_version*10000 + minor_version *100 + sub_version
  major_version*10000 + minor_version *100 + sub_version

Revision as of 18:00, 14 January 2008


Package-x-generic.png This function is provided by the external module MTA-MySQL. You must install this module to use this function.

Returns a number that represents the MySQL server version in this format:

major_version*10000 + minor_version *100 + sub_version

For example, 5.0.12 is returned as 50012.

This function is useful in client programs for quickly determining whether some version-specific server capability exists.

Syntax

int mysql_get_server_version( MySQLConnection handler )

Required arguments

  • handler: A valid MySQL link

Returns

An integer representing the MySQL server version.

See also