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
44dd303c
Commit
44dd303c
authored
Nov 02, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post review fixes.
parent
cb439945
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
mysql-test/r/view.result
mysql-test/r/view.result
+1
-1
mysql-test/t/view.test
mysql-test/t/view.test
+1
-1
sql/share/errmsg.txt
sql/share/errmsg.txt
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+6
-6
No files found.
mysql-test/r/view.result
View file @
44dd303c
...
...
@@ -2323,7 +2323,7 @@ id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t3 ALL NULL NULL NULL NULL 3 Using where
DROP VIEW v1,v2;
DROP TABLE t1,t2,t3;
CREATE TABLE t1(id INT)
ENGINE=MyISAM
;
CREATE TABLE t1(id INT);
CREATE VIEW v1 AS SELECT id FROM t1;
OPTIMIZE TABLE v1;
Table Op Msg_type Msg_text
...
...
mysql-test/t/view.test
View file @
44dd303c
...
...
@@ -2193,7 +2193,7 @@ DROP TABLE t1,t2,t3;
# Bug #14540: OPTIMIZE, ANALYZE, REPAIR applied to not a view
#
CREATE
TABLE
t1
(
id
INT
)
ENGINE
=
MyISAM
;
CREATE
TABLE
t1
(
id
INT
);
CREATE
VIEW
v1
AS
SELECT
id
FROM
t1
;
OPTIMIZE
TABLE
v1
;
...
...
sql/share/errmsg.txt
View file @
44dd303c
...
...
@@ -5421,5 +5421,5 @@ ER_NO_REFERENCED_ROW_2 23000
eng "Cannot add or update a child row: a foreign key constraint fails (%.192s)"
ER_SP_BAD_VAR_SHADOW 42000
eng "Variable '%-.64s' must be quoted with `...`, or renamed"
ER_CHECK_NOT_BASE_TABLE 4200
ER_CHECK_NOT_BASE_TABLE 4200
0
eng "You cannot apply %s to a view"
sql/sql_table.cc
View file @
44dd303c
...
...
@@ -2326,11 +2326,11 @@ send_result_message:
case
HA_ADMIN_NOT_BASE_TABLE
:
{
char
buf
[
ERRMSGSIZE
+
20
];
uint
length
=
my_snprintf
(
buf
,
ERRMSGSIZE
,
ER
(
ER_CHECK_NOT_BASE_TABLE
),
operator_name
);
protocol
->
store
(
"note"
,
4
,
system_charset_info
);
protocol
->
store
(
buf
,
length
,
system_charset_info
);
char
buf
[
ERRMSGSIZE
+
20
];
uint
length
=
my_snprintf
(
buf
,
ERRMSGSIZE
,
ER
(
ER_CHECK_NOT_BASE_TABLE
),
operator_name
);
protocol
->
store
(
"note"
,
4
,
system_charset_info
);
protocol
->
store
(
buf
,
length
,
system_charset_info
);
}
break
;
...
...
@@ -2442,7 +2442,7 @@ send_result_message:
{
pthread_mutex_lock
(
&
LOCK_open
);
remove_table_from_cache
(
thd
,
table
->
table
->
s
->
db
,
table
->
table
->
s
->
table_name
,
RTFC_NO_FLAG
);
table
->
table
->
s
->
table_name
,
RTFC_NO_FLAG
);
pthread_mutex_unlock
(
&
LOCK_open
);
/* Something may be modified, that's why we have to invalidate cache */
query_cache_invalidate3
(
thd
,
table
->
table
,
0
);
...
...
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