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
d3502181
Commit
d3502181
authored
Jun 15, 2006
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge moonbone.local:/home/evgen/bk-trees/mysql-5.0-opt
into moonbone.local:/work/19789-bug-5.0-opt-mysql
parents
a2261d57
97436287
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
mysql-test/r/replace.result
mysql-test/r/replace.result
+6
-0
mysql-test/t/replace.test
mysql-test/t/replace.test
+10
-0
sql/sql_lex.h
sql/sql_lex.h
+2
-0
No files found.
mysql-test/r/replace.result
View file @
d3502181
...
@@ -24,3 +24,9 @@ a b
...
@@ -24,3 +24,9 @@ a b
63 default_value
63 default_value
127 last
127 last
drop table t1;
drop table t1;
CREATE TABLE t1 (f1 INT);
CREATE VIEW v1 AS SELECT f1 FROM t1 WHERE f1 = 0 WITH CHECK OPTION;
REPLACE INTO v1 (f1) VALUES (1);
ERROR HY000: CHECK OPTION failed 'test.v1'
DROP TABLE t1;
DROP VIEW v1;
mysql-test/t/replace.test
View file @
d3502181
...
@@ -35,3 +35,13 @@ select * from t1;
...
@@ -35,3 +35,13 @@ select * from t1;
drop
table
t1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
#
# Bug#19789: REPLACE was allowed for a VIEW with CHECK OPTION enabled.
#
CREATE
TABLE
t1
(
f1
INT
);
CREATE
VIEW
v1
AS
SELECT
f1
FROM
t1
WHERE
f1
=
0
WITH
CHECK
OPTION
;
--
error
1369
REPLACE
INTO
v1
(
f1
)
VALUES
(
1
);
DROP
TABLE
t1
;
DROP
VIEW
v1
;
sql/sql_lex.h
View file @
d3502181
...
@@ -1000,6 +1000,8 @@ typedef struct st_lex
...
@@ -1000,6 +1000,8 @@ typedef struct st_lex
case
SQLCOM_UPDATE_MULTI
:
case
SQLCOM_UPDATE_MULTI
:
case
SQLCOM_INSERT
:
case
SQLCOM_INSERT
:
case
SQLCOM_INSERT_SELECT
:
case
SQLCOM_INSERT_SELECT
:
case
SQLCOM_REPLACE
:
case
SQLCOM_REPLACE_SELECT
:
case
SQLCOM_LOAD
:
case
SQLCOM_LOAD
:
return
TRUE
;
return
TRUE
;
default:
default:
...
...
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