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
dcf73493
Commit
dcf73493
authored
Mar 16, 2005
by
patg@krsna
Browse files
Options
Browse Files
Download
Plain Diff
Merge pgalbraith@bk-internal.mysql.com:/home/bk/mysql-5.0
into krsna.:/home/patg/test/mysql-5.0
parents
8e376b37
d6c893bb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
212 additions
and
53 deletions
+212
-53
innobase/data/data0data.c
innobase/data/data0data.c
+1
-3
mysql-test/r/select.result
mysql-test/r/select.result
+9
-0
mysql-test/t/select.test
mysql-test/t/select.test
+10
-0
ndb/src/ndbapi/NdbEventOperationImpl.cpp
ndb/src/ndbapi/NdbEventOperationImpl.cpp
+3
-2
sql/sql_parse.cc
sql/sql_parse.cc
+7
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+182
-48
No files found.
innobase/data/data0data.c
View file @
dcf73493
...
@@ -546,9 +546,7 @@ dtuple_convert_big_rec(
...
@@ -546,9 +546,7 @@ dtuple_convert_big_rec(
}
}
}
}
if
(
!
is_externally_stored
if
(
!
is_externally_stored
)
{
&&
dict_index_get_nth_type
(
index
,
i
)
->
mtype
==
DATA_BLOB
)
{
dfield
=
dtuple_get_nth_field
(
entry
,
i
);
dfield
=
dtuple_get_nth_field
(
entry
,
i
);
...
...
mysql-test/r/select.result
View file @
dcf73493
...
@@ -2446,3 +2446,12 @@ cast((a - b) as unsigned)
...
@@ -2446,3 +2446,12 @@ cast((a - b) as unsigned)
1
1
18446744073709551615
18446744073709551615
drop table t1;
drop table t1;
create table t1 (a int, b int);
create table t2 like t1;
select t1.a from (t1 inner join t2 on t1.a=t2.a) where t2.a=1;
a
select t1.a from ((t1 inner join t2 on t1.a=t2.a)) where t2.a=1;
a
select x.a, y.a, z.a from ( (t1 x inner join t2 y on x.a=y.a) inner join t2 z on y.a=z.a) WHERE x.a=1;
a a a
drop table t1,t2;
mysql-test/t/select.test
View file @
dcf73493
...
@@ -2015,3 +2015,13 @@ select a-b , (a-b < 0) from t1 order by 1;
...
@@ -2015,3 +2015,13 @@ select a-b , (a-b < 0) from t1 order by 1;
select
a
-
b
as
d
,
(
a
-
b
>=
0
),
b
from
t1
group
by
b
having
d
>=
0
;
select
a
-
b
as
d
,
(
a
-
b
>=
0
),
b
from
t1
group
by
b
having
d
>=
0
;
select
cast
((
a
-
b
)
as
unsigned
)
from
t1
order
by
1
;
select
cast
((
a
-
b
)
as
unsigned
)
from
t1
order
by
1
;
drop
table
t1
;
drop
table
t1
;
#
# Bug#8670
#
create
table
t1
(
a
int
,
b
int
);
create
table
t2
like
t1
;
select
t1
.
a
from
(
t1
inner
join
t2
on
t1
.
a
=
t2
.
a
)
where
t2
.
a
=
1
;
select
t1
.
a
from
((
t1
inner
join
t2
on
t1
.
a
=
t2
.
a
))
where
t2
.
a
=
1
;
select
x
.
a
,
y
.
a
,
z
.
a
from
(
(
t1
x
inner
join
t2
y
on
x
.
a
=
y
.
a
)
inner
join
t2
z
on
y
.
a
=
z
.
a
)
WHERE
x
.
a
=
1
;
drop
table
t1
,
t2
;
ndb/src/ndbapi/NdbEventOperationImpl.cpp
View file @
dcf73493
...
@@ -404,12 +404,13 @@ NdbEventOperationImpl::next(int *pOverrun)
...
@@ -404,12 +404,13 @@ NdbEventOperationImpl::next(int *pOverrun)
Uint32
*
aDataPtr
=
ptr
[
1
].
p
;
Uint32
*
aDataPtr
=
ptr
[
1
].
p
;
#ifdef EVENT_DEBUG
#ifdef EVENT_DEBUG
int
i
;
printf
(
"after values sz=%u
\n
"
,
ptr
[
1
].
sz
);
printf
(
"after values sz=%u
\n
"
,
ptr
[
1
].
sz
);
for
(
i
nt
i
=
0
;
i
<
(
int
)
ptr
[
1
].
sz
;
i
++
)
for
(
i
=
0
;
i
<
(
int
)
ptr
[
1
].
sz
;
i
++
)
printf
(
"H'%.8X "
,
ptr
[
1
].
p
[
i
]);
printf
(
"H'%.8X "
,
ptr
[
1
].
p
[
i
]);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
printf
(
"before values sz=%u
\n
"
,
ptr
[
2
].
sz
);
printf
(
"before values sz=%u
\n
"
,
ptr
[
2
].
sz
);
for
(
i
nt
i
=
0
;
i
<
(
int
)
ptr
[
2
].
sz
;
i
++
)
for
(
i
=
0
;
i
<
(
int
)
ptr
[
2
].
sz
;
i
++
)
printf
(
"H'%.8X "
,
ptr
[
2
].
p
[
i
]);
printf
(
"H'%.8X "
,
ptr
[
2
].
p
[
i
]);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
#endif
#endif
...
...
sql/sql_parse.cc
View file @
dcf73493
...
@@ -5850,6 +5850,7 @@ TABLE_LIST *st_select_lex::end_nested_join(THD *thd)
...
@@ -5850,6 +5850,7 @@ TABLE_LIST *st_select_lex::end_nested_join(THD *thd)
{
{
TABLE_LIST
*
ptr
;
TABLE_LIST
*
ptr
;
DBUG_ENTER
(
"end_nested_join"
);
DBUG_ENTER
(
"end_nested_join"
);
DBUG_ASSERT
(
embedding
);
ptr
=
embedding
;
ptr
=
embedding
;
join_list
=
ptr
->
join_list
;
join_list
=
ptr
->
join_list
;
embedding
=
ptr
->
embedding
;
embedding
=
ptr
->
embedding
;
...
@@ -5863,6 +5864,12 @@ TABLE_LIST *st_select_lex::end_nested_join(THD *thd)
...
@@ -5863,6 +5864,12 @@ TABLE_LIST *st_select_lex::end_nested_join(THD *thd)
join_list
->
push_front
(
embedded
);
join_list
->
push_front
(
embedded
);
ptr
=
embedded
;
ptr
=
embedded
;
}
}
else
if
(
nested_join
->
join_list
.
elements
==
0
)
{
join_list
->
pop
();
DBUG_RETURN
(
0
);
}
DBUG_RETURN
(
ptr
);
DBUG_RETURN
(
ptr
);
}
}
...
...
sql/sql_yacc.yy
View file @
dcf73493
This diff is collapsed.
Click to expand it.
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