summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <venu@myvenu.com>2003-07-13 09:53:31 -0700
committerunknown <venu@myvenu.com>2003-07-13 09:53:31 -0700
commit0465279561895b5312d058dc560ab29f03d38cd7 (patch)
treed8941f15db70a9aebc39e7cce8d38d60579d9704 /sql
parent2bc79e0876d1456471a2c66bf7edc7da546e99cf (diff)
parent768ab1e47e363dffc8ee450d48ebbf976efb3d65 (diff)
downloadmariadb-git-0465279561895b5312d058dc560ab29f03d38cd7.tar.gz
Merge venu@bk-internal.mysql.com:/home/bk/mysql-4.1
into myvenu.com:/home/venu/work/sql/dev-4.1 sql/item_strfunc.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/item_strfunc.cc1
-rw-r--r--sql/sql_yacc.yy11
2 files changed, 8 insertions, 4 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 92a68002b9e..b25619d0bb1 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -2428,7 +2428,6 @@ String* Item_func_export_set::val_str(String* str)
void Item_func_export_set::fix_length_and_dec()
{
- uint i;
uint length=max(args[1]->max_length,args[2]->max_length);
uint sep_length=(arg_count > 3 ? args[3]->max_length : 1);
max_length=length*64+sep_length*63;
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 3098bd18b2d..c836cb414e0 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -3742,7 +3742,7 @@ show_param:
Lex->mi.pos = $12;
Lex->mi.server_id = $16;
}
- | BINARY LOGS_SYM
+ | master_or_binary LOGS_SYM
{
Lex->sql_command = SQLCOM_SHOW_BINLOGS;
}
@@ -3802,6 +3802,8 @@ show_param:
{ Lex->sql_command= SQLCOM_SHOW_CHARSETS; }
| COLLATION_SYM wild
{ Lex->sql_command= SQLCOM_SHOW_COLLATIONS; }
+ | BERKELEY_DB_SYM LOGS_SYM
+ { Lex->sql_command= SQLCOM_SHOW_LOGS; }
| LOGS_SYM
{ Lex->sql_command= SQLCOM_SHOW_LOGS; }
| GRANTS FOR_SYM user
@@ -3832,6 +3834,10 @@ show_param:
Lex->sql_command = SQLCOM_SHOW_SLAVE_STAT;
};
+master_or_binary:
+ MASTER_SYM
+ | BINARY;
+
opt_db:
/* empty */ { $$= 0; }
| from_or_in ident { $$= $2.str; };
@@ -3949,8 +3955,7 @@ purge:
;
purge_options:
- LOGS_SYM purge_option
- | MASTER_SYM LOGS_SYM purge_option
+ master_or_binary LOGS_SYM purge_option
;
purge_option: