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
caf4a5b9
Commit
caf4a5b9
authored
Jun 11, 2002
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@work.mysql.com:/home/bk/mysql-4.0
into sinisa.nasamreza.org:/mnt/hdc/Sinisa/mysql-4.0
parents
6115eb3d
6575d4d1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
12 deletions
+17
-12
mysql-test/r/multi_update.result
mysql-test/r/multi_update.result
+3
-3
mysql-test/t/multi_update.test
mysql-test/t/multi_update.test
+4
-4
sql/sql_delete.cc
sql/sql_delete.cc
+4
-4
sql/sql_lex.cc
sql/sql_lex.cc
+1
-0
sql/sql_parse.cc
sql/sql_parse.cc
+5
-1
No files found.
mysql-test/r/multi_update.result
View file @
caf4a5b9
...
...
@@ -66,7 +66,7 @@ select count(*) from t3 where id3;
count(*)
0
drop table t1,t2,t3;
create table t1(id1 int not null
auto_increment primary key, t varchar(100))
;
create table t2(id2 int not null, t varchar(100), index(id2));
delete t1
, t2 from t2,t1 where t1.id1 = t2.id2 and t1.id1 > 1
00;
create table t1(id1 int not null
primary key, t varchar(100)) pack_keys = 1
;
create table t2(id2 int not null, t varchar(100), index(id2))
pack_keys = 1
;
delete t1
from t1,t2 where t1.id1 = t2.id2 and t1.id1 > 5
00;
drop table t1,t2;
mysql-test/t/multi_update.test
View file @
caf4a5b9
...
...
@@ -62,14 +62,14 @@ select count(*) from t2 where id2;
select
count
(
*
)
from
t3
where
id3
;
drop
table
t1
,
t2
,
t3
;
create
table
t1
(
id1
int
not
null
auto_increment
primary
key
,
t
varchar
(
100
))
;
create
table
t2
(
id2
int
not
null
,
t
varchar
(
100
),
index
(
id2
));
create
table
t1
(
id1
int
not
null
primary
key
,
t
varchar
(
100
))
pack_keys
=
1
;
create
table
t2
(
id2
int
not
null
,
t
varchar
(
100
),
index
(
id2
))
pack_keys
=
1
;
disable_query_log
;
let
$
1
=
1000
;
while
(
$
1
)
{
let
$
2
=
5
;
eval
insert
into
t1
(
t
)
values
(
'aaaaaaaaaaaaaaaaaaaa'
);
eval
insert
into
t1
values
(
$
1
,
'aaaaaaaaaaaaaaaaaaaa'
);
while
(
$
2
)
{
eval
insert
into
t2
(
id2
,
t
)
values
(
$
1
,
'bbbbbbbbbbbbbbbbb'
);
...
...
@@ -78,5 +78,5 @@ while ($1)
dec
$
1
;
}
enable_query_log
;
delete
t1
,
t2
from
t2
,
t1
where
t1
.
id1
=
t2
.
id2
and
t1
.
id1
>
1
00
;
delete
t1
from
t1
,
t2
where
t1
.
id1
=
t2
.
id2
and
t1
.
id1
>
5
00
;
drop
table
t1
,
t2
;
sql/sql_delete.cc
View file @
caf4a5b9
...
...
@@ -273,11 +273,11 @@ multi_delete::initialize_tables(JOIN *join)
if
(
tab
->
table
->
map
&
tables_to_delete_from
)
{
/* We are going to delete from this table */
walk
->
table
=
tab
->
table
;
TABLE
*
tbl
=
walk
->
table
=
tab
->
table
;
tbl
->
no_keyread
=
1
;
tbl
->
used_keys
=
0
;
walk
=
walk
->
next
;
if
(
tab
==
join
->
join_tab
)
tab
->
table
->
no_keyread
=
1
;
if
(
!
not_trans_safe
&&
!
tab
->
table
->
file
->
has_transactions
())
if
(
!
not_trans_safe
&&
!
tbl
->
file
->
has_transactions
())
not_trans_safe
=
true
;
}
}
...
...
sql/sql_lex.cc
View file @
caf4a5b9
...
...
@@ -151,6 +151,7 @@ LEX *lex_start(THD *thd, uchar *buf,uint length)
lex
->
yacc_yyss
=
lex
->
yacc_yyvs
=
0
;
lex
->
ignore_space
=
test
(
thd
->
sql_mode
&
MODE_IGNORE_SPACE
);
lex
->
slave_thd_opt
=
0
;
lex
->
sql_command
=
SQLCOM_END
;
bzero
(
&
lex
->
mi
,
sizeof
(
lex
->
mi
));
return
lex
;
}
...
...
sql/sql_parse.cc
View file @
caf4a5b9
...
...
@@ -1960,7 +1960,11 @@ mysql_execute_command(void)
}
auxi
->
lock_type
=
walk
->
lock_type
=
TL_WRITE
;
auxi
->
table
=
(
TABLE
*
)
walk
;
// Remember corresponding table
(
void
)
add_item_to_list
(
new
Item_field
(
auxi
->
db
,
auxi
->
real_name
,
"*"
));
}
if
(
add_item_to_list
(
new
Item_null
()))
{
res
=
-
1
;
break
;
}
tables
->
grant
.
want_privilege
=
(
SELECT_ACL
&
~
tables
->
grant
.
privilege
);
thd
->
proc_info
=
"init"
;
...
...
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