SQL602_version

sql

FUNCTION SQL602_version RETURNS INT;

Description

The SQL602_version function returns the 602SQL version number. The upper word specifies the major version number, the lower word specifies the minor version number.

Function value

This function return the 602SQL version number.

Example (SQL):

FUNCTION `srv_version`() RETURNS CHAR(10);
*****************************************************
BEGIN
  DECLARE i INT;
  DECLARE vers CHAR(10);
  SET i = SQL602_version;
  SET vers = Int2str(i div 65536)||'.'||Int2str(i mod 65536);
  SET i = SQL602_build;
  SET vers = vers||'.'||Int2str(i div 65536)||'.'||Int2str(i mod 65536);
  RETURN vers;
END

See