Converts a value to an SQL literal in the syntax expected by the connected database
Source position: msedb.pas line 1562
public function tdscontroller.assql( |
const avalue: Boolean |
):msestring; overload; |
const avalue: msestring |
):msestring; overload; |
const avalue: Integer |
):msestring; overload; |
const avalue: Int64 |
):msestring; overload; |
const avalue: currency |
):msestring; overload; |
const avalue: realty |
):msestring; overload; |
const avalue: tdatetime |
):msestring; overload; |
Converts a value to an SQL literal in the syntax expected by the connected database (which varies per backend, e.g. for dates or for the currency/ftbcd encoding). Use these — or tcustomsqlconnection.fieldtosql for a field's current value — instead of formatting SQL text by hand (e.g. in applyrecupdate), to stay portable across backends.