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
472de263
Commit
472de263
authored
Sep 07, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
requre BASE TABLE for HANDLER (BUG#5277)
parent
481e8954
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
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_handler.cc
sql/sql_handler.cc
+4
-0
No files found.
mysql-test/r/view.result
View file @
472de263
...
...
@@ -1270,3 +1270,9 @@ s1
7
drop view v1;
drop table t1;
create table t1 (s1 int);
create view v1 as select * from t1;
handler v1 open as xx;
ERROR HY000: 'test.v1' is not BASE TABLE
drop view v1;
drop table t1;
mysql-test/t/view.test
View file @
472de263
...
...
@@ -1230,3 +1230,13 @@ insert into v1 values (1) on duplicate key update s1 = 7;
select
*
from
t1
;
drop
view
v1
;
drop
table
t1
;
#
# HANDLER with VIEW
#
create
table
t1
(
s1
int
);
create
view
v1
as
select
*
from
t1
;
--
error
1346
handler
v1
open
as
xx
;
drop
view
v1
;
drop
table
t1
;
sql/sql_handler.cc
View file @
472de263
...
...
@@ -51,7 +51,11 @@ int mysql_ha_open(THD *thd, TABLE_LIST *tables)
{
HANDLER_TABLES_HACK
(
thd
);
uint
counter
;
/* for now HANDLER can be used only for real TABLES */
tables
->
required_type
=
FRMTYPE_TABLE
;
int
err
=
open_tables
(
thd
,
tables
,
&
counter
);
HANDLER_TABLES_HACK
(
thd
);
if
(
err
)
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