1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Now this syntax works too: CONVERT(string,charset_to,charset_from)

where charset_to and charset_from are expressions. For example:

CONVERT('test','latin2','cp1250')
This commit is contained in:
bar@gw.udmsearch.izhnet.ru
2002-03-29 19:11:06 +04:00
parent ae03ccc403
commit 648bd2788a
3 changed files with 87 additions and 0 deletions

View File

@@ -489,6 +489,16 @@ public:
const char *func_name() const { return "conv_charset"; }
};
class Item_func_conv_charset3 :public Item_str_func
{
public:
Item_func_conv_charset3(Item *arg1,Item *arg2,Item *arg3)
:Item_str_func(arg1,arg2,arg3) {}
String *val_str(String *);
void fix_length_and_dec();
const char *func_name() const { return "conv_charset3"; }
};
/*******************************************************
Spatial functions