Relational Interface
This section discusses the new and revised functionality to support the relational interface.
System Catalog Functions
Pervasive PSQL v11 SP1 includes the following new system catalog functions:
The system catalog functions allow you to obtain database metadata from the data dictionary files (also known as the catalog) and can be used only in a FROM clause. A temporary view schema for each system catalog function is created during SQLPrepare and data is stored in the view by calling a corresponding ODBC catalog API during SQLExecute.
See the chapter System Catalog Functions in SQL Engine Reference.
Scalar Functions
The following scalar functions are either new, have additional parameters, or were previously undocumented.
 
See in SQL Engine Reference
DAY (date_exp)
DATEPART (datepart, date_exp)
TZoffset is an addition to the values that can be used for datepart. TZoffset returns a time zone offset in number of minutes (signed).
Returns 1 (TRUE) if string can be evaluated as a numeric value; otherwise returns 0 (FALSE).
REVERSE (string)
WEEKDAY (date_exp)
Returns the day of the week for the given date_exp, where 1=Sunday and 7=Saturday.