NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
V-8
Host language compiler versions
than the PCV of the program, but a program cannot be registered in a catalog that
has a version older than the PCV of the program.
The program format version (PFV) is the version of the SQL compiler that compiled
the program. It indicates the oldest version of NonStop SQL/MP software that can
execute the program and the newest version of objects that the program can access.
A program can be registered in a catalog that has a version older or newer than the
PFV of the program, but a program cannot access an object that has a version newer
than the PFV of the program.
A host language compiler cannot have a newer version than the NonStop SQL/MP
software on the same node, but can have an older version.
Host language compiler versions
Each host language compiler that supports NonStop SQL/MP has a version that
indicates the oldest version of NonStop SQL/MP software that can SQL-compile object
programs produced by the host language compiler. The version of the host language
compiler becomes the host object SQL version (HOSV) of the object programs it
produces.
The GET VERSION OF PROGRAM command returns the HOSV, PCV, or PFV of a
program.
VERSIONS Table
The VERSIONS table is a catalog table that stores version information about the
catalog. The version information is also replicated in the SQL.CATALOGS table. The
following table describes the contents of the VERSIONS table.
Column Name Data Type Description
1 SUBSYSTEMNAME *
CHAR(30) Name of subsystem where catalog
resides
2 VERSION CHAR(4) Version of catalog: A010=1,
A011=2, ...A315=315, and so forth
3
VERSIONUPGRADETIME
LARGEINT
SIGNED
Julian timestamp for last upgrade or
downgrade of catalog
4 CATALOGCLASS CHAR(1)
S if system catalog
U if user catalog
5 CATALOGVERSION SMALLINT
UNSIGNED
Version number of catalog
6 CATALOGFORMAT SMALLINT
UNSIGNED
Format number of catalog (version
number of oldest software that can
read or write the catalog)
* Indicates primary key