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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
89102024
Commit
89102024
authored
Jan 26, 2006
by
joerg@debian.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into debian.(none):/M51/mysql-5.1
parents
1860431e
8f525432
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
16 deletions
+13
-16
mysql-test/r/events.result
mysql-test/r/events.result
+3
-2
mysql-test/t/events.test
mysql-test/t/events.test
+3
-2
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+1
-1
sql/ha_partition.cc
sql/ha_partition.cc
+1
-1
sql/lex.h
sql/lex.h
+0
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+3
-7
sql/table.cc
sql/table.cc
+2
-1
No files found.
mysql-test/r/events.result
View file @
89102024
...
@@ -4,8 +4,9 @@ drop event if exists event1;
...
@@ -4,8 +4,9 @@ drop event if exists event1;
Warnings:
Warnings:
Note 1305 Event event1 does not exist
Note 1305 Event event1 does not exist
create event event1 on schedule every 15 minute starts now() ends date_add(now(), interval 5 hour) DO begin end;
create event event1 on schedule every 15 minute starts now() ends date_add(now(), interval 5 hour) DO begin end;
alter event event1 rename to event2;
alter event event1 rename to event2 enable;
alter event event2 disabled;
alter event event2 disable;
alter event event2 enable;
alter event event2 on completion not preserve;
alter event event2 on completion not preserve;
alter event event2 on schedule every 1 year on completion preserve rename to event3 comment "new comment" do begin select 1; end__
alter event event2 on schedule every 1 year on completion preserve rename to event3 comment "new comment" do begin select 1; end__
alter event event3 rename to event2;
alter event event3 rename to event2;
...
...
mysql-test/t/events.test
View file @
89102024
...
@@ -2,8 +2,9 @@ create database if not exists events_test;
...
@@ -2,8 +2,9 @@ create database if not exists events_test;
use
events_test
;
use
events_test
;
drop
event
if
exists
event1
;
drop
event
if
exists
event1
;
create
event
event1
on
schedule
every
15
minute
starts
now
()
ends
date_add
(
now
(),
interval
5
hour
)
DO
begin
end
;
create
event
event1
on
schedule
every
15
minute
starts
now
()
ends
date_add
(
now
(),
interval
5
hour
)
DO
begin
end
;
alter
event
event1
rename
to
event2
;
alter
event
event1
rename
to
event2
enable
;
alter
event
event2
disabled
;
alter
event
event2
disable
;
alter
event
event2
enable
;
alter
event
event2
on
completion
not
preserve
;
alter
event
event2
on
completion
not
preserve
;
delimiter
__
;
delimiter
__
;
alter
event
event2
on
schedule
every
1
year
on
completion
preserve
rename
to
event3
comment
"new comment"
do
begin
select
1
;
end__
alter
event
event2
on
schedule
every
1
year
on
completion
preserve
rename
to
event3
comment
"new comment"
do
begin
select
1
;
end__
...
...
scripts/mysql_fix_privilege_tables.sql
View file @
89102024
...
@@ -589,7 +589,7 @@ CREATE TABLE event (
...
@@ -589,7 +589,7 @@ CREATE TABLE event (
ends DATETIME default NULL,
ends DATETIME default NULL,
status ENUM('
ENABLED
','
DISABLED
') NOT NULL default '
ENABLED
',
status ENUM('
ENABLED
','
DISABLED
') NOT NULL default '
ENABLED
',
on_completion ENUM('
DROP
','
PRESERVE
') NOT NULL default '
DROP
',
on_completion ENUM('
DROP
','
PRESERVE
') NOT NULL default '
DROP
',
comment
var
char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default
''
,
comment char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default
''
,
PRIMARY KEY (db,name)
PRIMARY KEY (db,name)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT '
Events
';
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT '
Events
';
...
...
sql/ha_partition.cc
View file @
89102024
...
@@ -1780,7 +1780,7 @@ void ha_partition::set_up_table_before_create(TABLE *table,
...
@@ -1780,7 +1780,7 @@ void ha_partition::set_up_table_before_create(TABLE *table,
return
;
// Fatal error
return
;
// Fatal error
table
->
s
->
max_rows
=
part_elem
->
part_max_rows
;
table
->
s
->
max_rows
=
part_elem
->
part_max_rows
;
table
->
s
->
min_rows
=
part_elem
->
part_min_rows
;
table
->
s
->
min_rows
=
part_elem
->
part_min_rows
;
char
*
partition_name
=
strrchr
(
partition_name_with_path
,
FN_LIBCHAR
);
c
onst
c
har
*
partition_name
=
strrchr
(
partition_name_with_path
,
FN_LIBCHAR
);
if
(
part_elem
->
index_file_name
)
if
(
part_elem
->
index_file_name
)
append_file_to_dir
(
current_thd
,
append_file_to_dir
(
current_thd
,
(
const
char
**
)
&
part_elem
->
index_file_name
,
(
const
char
**
)
&
part_elem
->
index_file_name
,
...
...
sql/lex.h
View file @
89102024
...
@@ -168,7 +168,6 @@ static SYMBOL symbols[] = {
...
@@ -168,7 +168,6 @@ static SYMBOL symbols[] = {
{
"DETERMINISTIC"
,
SYM
(
DETERMINISTIC_SYM
)},
{
"DETERMINISTIC"
,
SYM
(
DETERMINISTIC_SYM
)},
{
"DIRECTORY"
,
SYM
(
DIRECTORY_SYM
)},
{
"DIRECTORY"
,
SYM
(
DIRECTORY_SYM
)},
{
"DISABLE"
,
SYM
(
DISABLE_SYM
)},
{
"DISABLE"
,
SYM
(
DISABLE_SYM
)},
{
"DISABLED"
,
SYM
(
DISABLED_SYM
)},
{
"DISCARD"
,
SYM
(
DISCARD
)},
{
"DISCARD"
,
SYM
(
DISCARD
)},
{
"DISK"
,
SYM
(
DISK_SYM
)},
{
"DISK"
,
SYM
(
DISK_SYM
)},
{
"DISTINCT"
,
SYM
(
DISTINCT
)},
{
"DISTINCT"
,
SYM
(
DISTINCT
)},
...
@@ -185,7 +184,6 @@ static SYMBOL symbols[] = {
...
@@ -185,7 +184,6 @@ static SYMBOL symbols[] = {
{
"ELSE"
,
SYM
(
ELSE
)},
{
"ELSE"
,
SYM
(
ELSE
)},
{
"ELSEIF"
,
SYM
(
ELSEIF_SYM
)},
{
"ELSEIF"
,
SYM
(
ELSEIF_SYM
)},
{
"ENABLE"
,
SYM
(
ENABLE_SYM
)},
{
"ENABLE"
,
SYM
(
ENABLE_SYM
)},
{
"ENABLED"
,
SYM
(
ENABLED_SYM
)},
{
"ENCLOSED"
,
SYM
(
ENCLOSED
)},
{
"ENCLOSED"
,
SYM
(
ENCLOSED
)},
{
"END"
,
SYM
(
END
)},
{
"END"
,
SYM
(
END
)},
{
"ENDS"
,
SYM
(
ENDS_SYM
)},
{
"ENDS"
,
SYM
(
ENDS_SYM
)},
...
...
sql/sql_yacc.yy
View file @
89102024
...
@@ -243,7 +243,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
...
@@ -243,7 +243,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token DETERMINISTIC_SYM
%token DETERMINISTIC_SYM
%token DIRECTORY_SYM
%token DIRECTORY_SYM
%token DISABLE_SYM
%token DISABLE_SYM
%token DISABLED_SYM
%token DISCARD
%token DISCARD
%token DISK_SYM
%token DISK_SYM
%token DISTINCT
%token DISTINCT
...
@@ -259,7 +258,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
...
@@ -259,7 +258,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token ELSEIF_SYM
%token ELSEIF_SYM
%token ELT_FUNC
%token ELT_FUNC
%token ENABLE_SYM
%token ENABLE_SYM
%token ENABLED_SYM
%token ENCLOSED
%token ENCLOSED
%token ENCODE_SYM
%token ENCODE_SYM
%token ENCRYPT
%token ENCRYPT
...
@@ -1446,14 +1444,14 @@ ev_schedule_time: EVERY_SYM expr interval
...
@@ -1446,14 +1444,14 @@ ev_schedule_time: EVERY_SYM expr interval
;
;
opt_ev_status: /* empty */ {$<ulong_num>$= 0;}
opt_ev_status: /* empty */ {$<ulong_num>$= 0;}
| ENABLE
D
_SYM
| ENABLE_SYM
{
{
LEX *lex=Lex;
LEX *lex=Lex;
if (!lex->et_compile_phase)
if (!lex->et_compile_phase)
lex->et->status= MYSQL_EVENT_ENABLED;
lex->et->status= MYSQL_EVENT_ENABLED;
$<ulong_num>$= 1;
$<ulong_num>$= 1;
}
}
| DISABLE
D
_SYM
| DISABLE_SYM
{
{
LEX *lex=Lex;
LEX *lex=Lex;
...
@@ -9302,7 +9300,7 @@ keyword_sp:
...
@@ -9302,7 +9300,7 @@ keyword_sp:
| DELAY_KEY_WRITE_SYM {}
| DELAY_KEY_WRITE_SYM {}
| DES_KEY_FILE {}
| DES_KEY_FILE {}
| DIRECTORY_SYM {}
| DIRECTORY_SYM {}
| DISABLE
D
_SYM {}
| DISABLE_SYM {}
| DISCARD {}
| DISCARD {}
| DISK_SYM {}
| DISK_SYM {}
| DUMPFILE {}
| DUMPFILE {}
...
@@ -9322,9 +9320,7 @@ keyword_sp:
...
@@ -9322,9 +9320,7 @@ keyword_sp:
| EXTENT_SIZE_SYM {}
| EXTENT_SIZE_SYM {}
| FAST_SYM {}
| FAST_SYM {}
| FOUND_SYM {}
| FOUND_SYM {}
| DISABLE_SYM {}
| ENABLE_SYM {}
| ENABLE_SYM {}
| ENABLED_SYM {}
| FULL {}
| FULL {}
| FILE_SYM {}
| FILE_SYM {}
| FIRST_SYM {}
| FIRST_SYM {}
...
...
sql/table.cc
View file @
89102024
...
@@ -1759,7 +1759,8 @@ void open_table_error(TABLE_SHARE *share, int error, int db_errno, int errarg)
...
@@ -1759,7 +1759,8 @@ void open_table_error(TABLE_SHARE *share, int error, int db_errno, int errarg)
else
else
{
{
strxmov
(
buff
,
share
->
normalized_path
.
str
,
reg_ext
,
NullS
);
strxmov
(
buff
,
share
->
normalized_path
.
str
,
reg_ext
,
NullS
);
my_error
(
ER_FILE_NOT_FOUND
,
errortype
,
buff
,
db_errno
);
my_error
((
db_errno
==
EMFILE
)
?
ER_CANT_OPEN_FILE
:
ER_FILE_NOT_FOUND
,
errortype
,
buff
,
db_errno
);
}
}
break
;
break
;
case
2
:
case
2
:
...
...
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