EPUB | CHM | PDF

TMySQLDatabase.Methods.GetDatabaseCollation

Top Previous Next

note Since v2.6.0

Returns collation name string for current database.

Syntax:

function GetDatabaseCollation: String;

Description:

GetDatabaseCollation method returns collation name as it have been reported by server. For example: cp1251_general_cs.

note This method returns 'collation_database' server variable value for MySQL greater than 4.1.1 and empty string value for MySQL earlier 4.1.1

See also: GetDatabaseCharacterset method