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
74ddfaad
Commit
74ddfaad
authored
Nov 02, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after review fix
parent
42fb7d1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+0
-1
sql/item.cc
sql/item.cc
+8
-1
No files found.
mysql-test/t/subselect.test
View file @
74ddfaad
...
...
@@ -999,4 +999,3 @@ select * from t1 where (select count(*) from t2 group by t1.s2) = 1;
--
error
1109
select
count
(
*
)
from
t2
group
by
t1
.
s2
;
drop
table
t1
,
t2
;
sql/item.cc
View file @
74ddfaad
...
...
@@ -872,13 +872,16 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
else
if
(
tmp
==
not_found_field
&&
refer
==
(
Item
**
)
not_found_item
)
{
if
(
upward_lookup
)
{
// We can't say exactly what absend table or field
my_printf_error
(
ER_BAD_FIELD_ERROR
,
ER
(
ER_BAD_FIELD_ERROR
),
MYF
(
0
),
full_name
(),
thd
->
where
);
}
else
{
// Call to report error
find_field_in_tables
(
thd
,
this
,
tables
,
&
where
,
1
);
}
return
-
1
;
}
else
if
(
refer
!=
(
Item
**
)
not_found_item
)
...
...
@@ -1468,15 +1471,19 @@ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables, Item **reference)
else
if
(
ref
==
(
Item
**
)
not_found_item
&&
tmp
==
not_found_field
)
{
if
(
upward_lookup
)
{
// We can't say exactly what absend (table or field)
my_printf_error
(
ER_BAD_FIELD_ERROR
,
ER
(
ER_BAD_FIELD_ERROR
),
MYF
(
0
),
full_name
(),
thd
->
where
);
}
else
{
// Call to report error
find_item_in_list
(
this
,
*
(
thd
->
lex
.
current_select
->
get_item_list
()),
&
counter
,
REPORT_ALL_ERRORS
);
}
ref
=
0
;
return
1
;
}
...
...
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