22#include <drizzled/function/str/strfunc.h>
27class Item_func_quote :
public Item_str_func
31 Item_func_quote() :Item_str_func() {}
32 const char *func_name()
const {
return "quote"; }
34 void fix_length_and_dec()
36 collation.set(args[0]->collation);
37 max_length= args[0]->max_length * 2 + 2;
bool check_argument_count(int n)
String * val_str(String *)
Returns the argument string in single quotes suitable for using in a SQL statement.
TODO: Rename this file - func.h is stupid.