GetLanguage

Returns the current language being used. D7+ Only.
function GetLanguage(Connection: TSQLConnection): AnsiString;

Parameters:

Connection
The TSQLConnection component that is connected to the server.

Return Value:

The current language being used by the driver. This should be a 4-chars length string.

Exceptions:

EDatabaseError is raised in case of an error.

Quick Info:

Supported Compilers: D7+
Category: Database Information
Unit: PGEDriverUtils.pas

Example 5.7. 

ShowMessage('The current language is ' + GetLanguage(SQLConnection1));