SQL_QuoteString

Синтаксис

native SQL_QuoteString(Handle:db, buffer[], buflen, const string[]);

Употреба

db
Database handle for localization, or Empty_Handle
for when a handle is not available.
buffer
Buffer to copy to.
buflen
Maximum size of the buffer.
string
String to backquote (should not overlap buffer).

Описание

Back-quotes characters in a string for database querying.

Забележка

The buffer's maximum size should be 2*strlen(string) to catch all scenarios.

Връщаща стойност

Length of new string, or -1 on failure.

Грешка

Invalid database handle.