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
0960f5fe
Commit
0960f5fe
authored
Nov 05, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post review fixes.
parent
84ad2036
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
mysql-test/r/view.result
mysql-test/r/view.result
+4
-4
sql/share/errmsg.txt
sql/share/errmsg.txt
+0
-2
sql/sql_table.cc
sql/sql_table.cc
+1
-1
No files found.
mysql-test/r/view.result
View file @
0960f5fe
...
@@ -2339,17 +2339,17 @@ CREATE TABLE t1(id INT);
...
@@ -2339,17 +2339,17 @@ CREATE TABLE t1(id INT);
CREATE VIEW v1 AS SELECT id FROM t1;
CREATE VIEW v1 AS SELECT id FROM t1;
OPTIMIZE TABLE v1;
OPTIMIZE TABLE v1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.v1 optimize note
You cannot apply optimize to a view
test.v1 optimize note
Unknown table 'test.v1'
ANALYZE TABLE v1;
ANALYZE TABLE v1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.v1 analyze note
You cannot apply analyze to a view
test.v1 analyze note
Unknown table 'test.v1'
REPAIR TABLE v1;
REPAIR TABLE v1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.v1 repair note
You cannot apply repair to a view
test.v1 repair note
Unknown table 'test.v1'
DROP TABLE t1;
DROP TABLE t1;
OPTIMIZE TABLE v1;
OPTIMIZE TABLE v1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.v1 optimize note
You cannot apply optimize to a view
test.v1 optimize note
Unknown table 'test.v1'
Warnings:
Warnings:
Error 1146 Table 'test.t1' doesn't exist
Error 1146 Table 'test.t1' doesn't exist
Error 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
Error 1356 View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
...
...
sql/share/errmsg.txt
View file @
0960f5fe
...
@@ -5421,5 +5421,3 @@ ER_NO_REFERENCED_ROW_2 23000
...
@@ -5421,5 +5421,3 @@ ER_NO_REFERENCED_ROW_2 23000
eng "Cannot add or update a child row: a foreign key constraint fails (%.192s)"
eng "Cannot add or update a child row: a foreign key constraint fails (%.192s)"
ER_SP_BAD_VAR_SHADOW 42000
ER_SP_BAD_VAR_SHADOW 42000
eng "Variable '%-.64s' must be quoted with `...`, or renamed"
eng "Variable '%-.64s' must be quoted with `...`, or renamed"
ER_CHECK_NOT_BASE_TABLE 42000
eng "You cannot apply %s to a view"
sql/sql_table.cc
View file @
0960f5fe
...
@@ -2335,7 +2335,7 @@ send_result_message:
...
@@ -2335,7 +2335,7 @@ send_result_message:
{
{
char
buf
[
ERRMSGSIZE
+
20
];
char
buf
[
ERRMSGSIZE
+
20
];
uint
length
=
my_snprintf
(
buf
,
ERRMSGSIZE
,
uint
length
=
my_snprintf
(
buf
,
ERRMSGSIZE
,
ER
(
ER_CHECK_NOT_BASE_TABLE
),
operator
_name
);
ER
(
ER_BAD_TABLE_ERROR
),
table
_name
);
protocol
->
store
(
"note"
,
4
,
system_charset_info
);
protocol
->
store
(
"note"
,
4
,
system_charset_info
);
protocol
->
store
(
buf
,
length
,
system_charset_info
);
protocol
->
store
(
buf
,
length
,
system_charset_info
);
}
}
...
...
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