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
e6a4c0ba
Commit
e6a4c0ba
authored
Feb 29, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge host.loc:/home/uchum/work/PP/5.0-opt-34620
into host.loc:/home/uchum/work/5.0-opt-34763
parents
dad47218
d05c8d38
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
mysql-test/r/row.result
mysql-test/r/row.result
+9
-0
mysql-test/t/row.test
mysql-test/t/row.test
+13
-0
sql/item.h
sql/item.h
+29
-0
No files found.
mysql-test/r/row.result
View file @
e6a4c0ba
...
...
@@ -434,3 +434,12 @@ SELECT @x;
@x
99
DROP TABLE t1;
CREATE TABLE t1 (a INT, b INT);
INSERT INTO t1 VALUES (1,1);
SELECT ROW(a, 1) IN (SELECT SUM(b), 1) FROM t1 GROUP BY a;
ROW(a, 1) IN (SELECT SUM(b), 1)
1
SELECT ROW(a, 1) IN (SELECT SUM(b), 3) FROM t1 GROUP BY a;
ROW(a, 1) IN (SELECT SUM(b), 3)
0
DROP TABLE t1;
mysql-test/t/row.test
View file @
e6a4c0ba
...
...
@@ -224,3 +224,16 @@ SET @x:= (SELECT h FROM t1 WHERE (a,b,c,d,e,f,g)=(1,2,3,4,5,6,7));
SELECT
@
x
;
DROP
TABLE
t1
;
#
# Bug #34620: item_row.cc:50: Item_row::illegal_method_call(const char*):
# Assertion `0' failed
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
);
INSERT
INTO
t1
VALUES
(
1
,
1
);
SELECT
ROW
(
a
,
1
)
IN
(
SELECT
SUM
(
b
),
1
)
FROM
t1
GROUP
BY
a
;
SELECT
ROW
(
a
,
1
)
IN
(
SELECT
SUM
(
b
),
3
)
FROM
t1
GROUP
BY
a
;
DROP
TABLE
t1
;
sql/item.h
View file @
e6a4c0ba
...
...
@@ -1990,6 +1990,35 @@ class Item_ref :public Item_ident
Item_field
*
filed_for_view_update
()
{
return
(
*
ref
)
->
filed_for_view_update
();
}
virtual
Ref_Type
ref_type
()
{
return
REF
;
}
// Row emulation: forwarding of ROW-related calls to ref
uint
cols
()
{
return
ref
&&
result_type
()
==
ROW_RESULT
?
(
*
ref
)
->
cols
()
:
1
;
}
Item
*
element_index
(
uint
i
)
{
return
ref
&&
result_type
()
==
ROW_RESULT
?
(
*
ref
)
->
element_index
(
i
)
:
this
;
}
Item
**
addr
(
uint
i
)
{
return
ref
&&
result_type
()
==
ROW_RESULT
?
(
*
ref
)
->
addr
(
i
)
:
0
;
}
bool
check_cols
(
uint
c
)
{
return
ref
&&
result_type
()
==
ROW_RESULT
?
(
*
ref
)
->
check_cols
(
c
)
:
Item
::
check_cols
(
c
);
}
bool
null_inside
()
{
return
ref
&&
result_type
()
==
ROW_RESULT
?
(
*
ref
)
->
null_inside
()
:
0
;
}
void
bring_value
()
{
if
(
ref
&&
result_type
()
==
ROW_RESULT
)
(
*
ref
)
->
bring_value
();
}
};
...
...
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