Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f1e3a929
Commit
f1e3a929
authored
Jul 14, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into sergbook.mylan:/usr/home/serg/Abk/mysql-4.1
parents
97d9742f
768ab1e4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
mysql-test/r/rpl_rotate_logs.result
mysql-test/r/rpl_rotate_logs.result
+6
-1
mysql-test/t/rpl_rotate_logs.test
mysql-test/t/rpl_rotate_logs.test
+4
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+0
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+8
-3
No files found.
mysql-test/r/rpl_rotate_logs.result
View file @
f1e3a929
...
@@ -41,11 +41,16 @@ insert into t2 values(NULL);
...
@@ -41,11 +41,16 @@ insert into t2 values(NULL);
set global sql_slave_skip_counter=1;
set global sql_slave_skip_counter=1;
start slave;
start slave;
purge master logs to 'master-bin.000002';
purge master logs to 'master-bin.000002';
show master logs;
Log_name
master-bin.000002
master-bin.000003
purge binary logs to 'master-bin.000002';
show binary logs;
show binary logs;
Log_name
Log_name
master-bin.000002
master-bin.000002
master-bin.000003
master-bin.000003
purge logs before now();
purge
master
logs before now();
show binary logs;
show binary logs;
Log_name
Log_name
master-bin.000003
master-bin.000003
...
...
mysql-test/t/rpl_rotate_logs.test
View file @
f1e3a929
...
@@ -90,9 +90,12 @@ connection master;
...
@@ -90,9 +90,12 @@ connection master;
sync_slave_with_master
;
sync_slave_with_master
;
connection
master
;
connection
master
;
purge
master
logs
to
'master-bin.000002'
;
purge
master
logs
to
'master-bin.000002'
;
show
master
logs
;
# we just tests if synonyms are accepted
purge
binary
logs
to
'master-bin.000002'
;
show
binary
logs
;
show
binary
logs
;
--
sleep
1
;
--
sleep
1
;
purge
logs
before
now
();
purge
master
logs
before
now
();
show
binary
logs
;
show
binary
logs
;
insert
into
t2
values
(
65
);
insert
into
t2
values
(
65
);
sync_slave_with_master
;
sync_slave_with_master
;
...
...
sql/item_strfunc.cc
View file @
f1e3a929
...
@@ -2427,7 +2427,6 @@ String* Item_func_export_set::val_str(String* str)
...
@@ -2427,7 +2427,6 @@ String* Item_func_export_set::val_str(String* str)
void
Item_func_export_set
::
fix_length_and_dec
()
void
Item_func_export_set
::
fix_length_and_dec
()
{
{
uint
i
;
uint
length
=
max
(
args
[
1
]
->
max_length
,
args
[
2
]
->
max_length
);
uint
length
=
max
(
args
[
1
]
->
max_length
,
args
[
2
]
->
max_length
);
uint
sep_length
=
(
arg_count
>
3
?
args
[
3
]
->
max_length
:
1
);
uint
sep_length
=
(
arg_count
>
3
?
args
[
3
]
->
max_length
:
1
);
max_length
=
length
*
64
+
sep_length
*
63
;
max_length
=
length
*
64
+
sep_length
*
63
;
...
...
sql/sql_yacc.yy
View file @
f1e3a929
...
@@ -3742,7 +3742,7 @@ show_param:
...
@@ -3742,7 +3742,7 @@ show_param:
Lex->mi.pos = $12;
Lex->mi.pos = $12;
Lex->mi.server_id = $16;
Lex->mi.server_id = $16;
}
}
|
BINARY
LOGS_SYM
|
master_or_binary
LOGS_SYM
{
{
Lex->sql_command = SQLCOM_SHOW_BINLOGS;
Lex->sql_command = SQLCOM_SHOW_BINLOGS;
}
}
...
@@ -3802,6 +3802,8 @@ show_param:
...
@@ -3802,6 +3802,8 @@ show_param:
{ Lex->sql_command= SQLCOM_SHOW_CHARSETS; }
{ Lex->sql_command= SQLCOM_SHOW_CHARSETS; }
| COLLATION_SYM wild
| COLLATION_SYM wild
{ Lex->sql_command= SQLCOM_SHOW_COLLATIONS; }
{ Lex->sql_command= SQLCOM_SHOW_COLLATIONS; }
| BERKELEY_DB_SYM LOGS_SYM
{ Lex->sql_command= SQLCOM_SHOW_LOGS; }
| LOGS_SYM
| LOGS_SYM
{ Lex->sql_command= SQLCOM_SHOW_LOGS; }
{ Lex->sql_command= SQLCOM_SHOW_LOGS; }
| GRANTS FOR_SYM user
| GRANTS FOR_SYM user
...
@@ -3832,6 +3834,10 @@ show_param:
...
@@ -3832,6 +3834,10 @@ show_param:
Lex->sql_command = SQLCOM_SHOW_SLAVE_STAT;
Lex->sql_command = SQLCOM_SHOW_SLAVE_STAT;
};
};
master_or_binary:
MASTER_SYM
| BINARY;
opt_db:
opt_db:
/* empty */ { $$= 0; }
/* empty */ { $$= 0; }
| from_or_in ident { $$= $2.str; };
| from_or_in ident { $$= $2.str; };
...
@@ -3949,8 +3955,7 @@ purge:
...
@@ -3949,8 +3955,7 @@ purge:
;
;
purge_options:
purge_options:
LOGS_SYM purge_option
master_or_binary LOGS_SYM purge_option
| MASTER_SYM LOGS_SYM purge_option
;
;
purge_option:
purge_option:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment