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
63106c06
Commit
63106c06
authored
Apr 26, 2006
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for violation of uniqueness constraint at create index
parent
cb696feb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/r/ndb_index_unique.result
mysql-test/r/ndb_index_unique.result
+2
-0
mysql-test/t/ndb_index_unique.test
mysql-test/t/ndb_index_unique.test
+2
-2
No files found.
mysql-test/r/ndb_index_unique.result
View file @
63106c06
...
@@ -45,6 +45,8 @@ a b c
...
@@ -45,6 +45,8 @@ a b c
8 2 3
8 2 3
alter table t1 drop index ib;
alter table t1 drop index ib;
insert into t1 values(1, 2, 3);
insert into t1 values(1, 2, 3);
create unique index ib on t1(b);
ERROR 23000: Can't write, because of unique constraint, to table 't1'
drop table t1;
drop table t1;
CREATE TABLE t1 (
CREATE TABLE t1 (
a int unsigned NOT NULL PRIMARY KEY,
a int unsigned NOT NULL PRIMARY KEY,
...
...
mysql-test/t/ndb_index_unique.test
View file @
63106c06
...
@@ -32,8 +32,8 @@ select * from t1 order by a;
...
@@ -32,8 +32,8 @@ select * from t1 order by a;
alter
table
t1
drop
index
ib
;
alter
table
t1
drop
index
ib
;
insert
into
t1
values
(
1
,
2
,
3
);
insert
into
t1
values
(
1
,
2
,
3
);
# Bug# #18129
# Bug# #18129
#
--error 1169
--
error
1169
#
create unique index ib on t1(b);
create
unique
index
ib
on
t1
(
b
);
drop
table
t1
;
drop
table
t1
;
...
...
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