summaryrefslogtreecommitdiff
path: root/mysql-test/r/ndb_index_unique.result
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-01-26 16:09:58 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2005-01-26 16:09:58 +0100
commita51993cfc6ceb2d7bd70ec7c737eb212316fd2a5 (patch)
tree24ae954e02692855c115338fca928b3df2f91121 /mysql-test/r/ndb_index_unique.result
parente8aaac93ed1ecfe59d29a013f47cf62650cdd58d (diff)
parent43de408bbf6eb82558223a7e804ecc0ce4284557 (diff)
downloadmariadb-git-a51993cfc6ceb2d7bd70ec7c737eb212316fd2a5.tar.gz
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb mysql-test/r/ndb_index_unique.result: Auto merged mysql-test/t/ndb_index_unique.test: Auto merged sql/sql_insert.cc: Auto merged
Diffstat (limited to 'mysql-test/r/ndb_index_unique.result')
-rw-r--r--mysql-test/r/ndb_index_unique.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_index_unique.result b/mysql-test/r/ndb_index_unique.result
index d9397ad42e1..517d09ddf29 100644
--- a/mysql-test/r/ndb_index_unique.result
+++ b/mysql-test/r/ndb_index_unique.result
@@ -612,3 +612,17 @@ a b c
3 NULL NULL
4 4 NULL
drop table t1, t8;
+create table t1(
+id integer not null auto_increment,
+month integer not null,
+year integer not null,
+code varchar( 2) not null,
+primary key ( id),
+unique idx_t1( month, code, year)
+) engine=ndb;
+INSERT INTO t1 (month, year, code) VALUES (4,2004,'12');
+INSERT INTO t1 (month, year, code) VALUES (5,2004,'12');
+select * from t1 where code = '12' and month = 4 and year = 2004 ;
+id month year code
+1 4 2004 12
+drop table t1;