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
76c0154e
Commit
76c0154e
authored
Jul 22, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
privent crash on temporary table during indexes lookup (BUG#4677)
parent
ed32dbba
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
mysql-test/r/view.result
mysql-test/r/view.result
+6
-0
mysql-test/t/view.test
mysql-test/t/view.test
+10
-0
sql/sql_base.cc
sql/sql_base.cc
+3
-2
No files found.
mysql-test/r/view.result
View file @
76c0154e
...
...
@@ -977,3 +977,9 @@ ERROR HY000: View 'test.v1' references invalid table(s) or column(s)
drop view v1;
create view v1 (a,a) as select 'a','a';
ERROR 42S21: Duplicate column name 'a'
create table t1 (a int, b int);
create view v1 as select a, sum(b) from t1 group by a;
select b from v1 use index (some_index) where b=1;
ERROR 42000: Key column 'some_index' doesn't exist in table
drop view v1;
drop table t1;
mysql-test/t/view.test
View file @
76c0154e
...
...
@@ -900,3 +900,13 @@ drop view v1;
#
--
error
1060
create
view
v1
(
a
,
a
)
as
select
'a'
,
'a'
;
#
# check 'use index' on view with temporary table
#
create
table
t1
(
a
int
,
b
int
);
create
view
v1
as
select
a
,
sum
(
b
)
from
t1
group
by
a
;
--
error
1072
select
b
from
v1
use
index
(some_index) where b=1
;
drop
view
v1
;
drop
table
t1
;
sql/sql_base.cc
View file @
76c0154e
...
...
@@ -2555,7 +2555,8 @@ bool get_key_map_from_key_list(key_map *map, TABLE *table,
map
->
clear_all
();
while
((
name
=
it
++
))
{
if
((
pos
=
find_type
(
&
table
->
keynames
,
name
->
ptr
(),
name
->
length
(),
1
))
<=
if
(
table
->
keynames
.
type_names
==
0
||
(
pos
=
find_type
(
&
table
->
keynames
,
name
->
ptr
(),
name
->
length
(),
1
))
<=
0
)
{
my_error
(
ER_KEY_COLUMN_DOES_NOT_EXITS
,
MYF
(
0
),
name
->
c_ptr
(),
...
...
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