EPUB | CHM | PDF

TMySQLDatabase.Methods.GetIdentifier

Top Previous Next

note Since v2.6.0

Returns quoted identifier if server supports backquote character (`).

Syntax:

function GetIdentifier(aIdentName : string) : string;

Description:

GetIdentifier method returns value of aIdentName parameter quoted with backquote characters (`) if server version is equal or greater 3.23.6. This method is useful if you want to ensure, that your identifier is acceptable for server.

Example:
var s, r : string;
...
s := 'MyTableName';
r := mySQLDatabase1.GetIdentifier(s);

Value of r variable will remain MyTableName for MySQL before 3.23.6 and will be `MyTableName` otherwise.