My Project
Public Member Functions
Item_func_quote Class Reference
Inheritance diagram for Item_func_quote:
Item_str_func Item_func Item_result_field Item

List of all members.

Public Member Functions

 Item_func_quote (Item *a)
const char * func_name () const
Stringval_str (String *)
void fix_length_and_dec ()

Member Function Documentation

String * Item_func_quote::val_str ( String str) [virtual]

QUOTE() function returns argument string in single quotes suitable for using in a SQL statement.

Adds a \ before all characters that needs to be escaped in a SQL string. We also escape '^Z' (END-OF-FILE in windows) to avoid probelms when running commands from a file in windows.

This function is very useful when you want to generate SQL statements.

QUOTE(NULL) returns the string 'NULL' (4 letters, without quotes).
Return values:
strQuoted string
NULLOut of memory.

Implements Item.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines