diff options
author | bell@sanja.is.com.ua <> | 2004-11-13 19:35:51 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-11-13 19:35:51 +0200 |
commit | 7210195f1e8b482db0a102b921a859604a1f9522 (patch) | |
tree | a534689811d0f65eba423eed77b056f3bb30bd51 /sql/item_cmpfunc.cc | |
parent | 1555469b646733f86692033bb20f500b7be29458 (diff) | |
download | mariadb-git-7210195f1e8b482db0a102b921a859604a1f9522.tar.gz |
now my_printf_error is not better then my_error, but my_error call is shorter
used only one implementation of format parser of (printf)
fixed multistatement
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 63d20b2dab3..4a4485ba2da 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -53,11 +53,10 @@ static void agg_cmp_type(Item_result *type, Item **items, uint nitems) static void my_coll_agg_error(DTCollation &c1, DTCollation &c2, const char *fname) { - my_printf_error(ER_CANT_AGGREGATE_2COLLATIONS, - ER(ER_CANT_AGGREGATE_2COLLATIONS), MYF(0), - c1.collation->name,c1.derivation_name(), - c2.collation->name,c2.derivation_name(), - fname); + my_error(ER_CANT_AGGREGATE_2COLLATIONS, MYF(0), + c1.collation->name,c1.derivation_name(), + c2.collation->name,c2.derivation_name(), + fname); } @@ -2437,7 +2436,7 @@ Item_func_regex::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) cmp_collation.collation))) { (void) regerror(error,&preg,buff,sizeof(buff)); - my_printf_error(ER_REGEXP_ERROR,ER(ER_REGEXP_ERROR),MYF(0),buff); + my_error(ER_REGEXP_ERROR, MYF(0), buff); return TRUE; } regex_compiled=regex_is_const=1; |