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
641c92dd
Commit
641c92dd
authored
May 21, 2006
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/space/pekka/ndb/version/my51
parents
bc6bdd8e
b9cd71e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
122 additions
and
0 deletions
+122
-0
mysql-test/r/ndb_blob.result
mysql-test/r/ndb_blob.result
+66
-0
mysql-test/t/ndb_blob.test
mysql-test/t/ndb_blob.test
+56
-0
No files found.
mysql-test/r/ndb_blob.result
View file @
641c92dd
...
...
@@ -500,3 +500,69 @@ select count(*) from t1;
count(*)
0
drop table t1;
create table t1 (
a varchar(40) not null,
b mediumint not null,
t text,
c varchar(2) not null,
d bigint not null,
primary key (a,b,c),
key (c,a),
unique key (d)
) engine=ndb;
insert into t1 (a,b,c,d,t) values ('a',1110,'a',1,@v1);
insert into t1 (a,b,c,d,t) values ('b',1110,'a',2,@v2);
insert into t1 (a,b,c,d,t) values ('a',1110,'b',3,@v3);
insert into t1 (a,b,c,d,t) values ('b',1110,'b',4,@v4);
select a,b,c,d,sha1(t) from t1 order by c,a;
a b c d sha1(t)
a 1110 a 1 558a30713786aa72f66abc1e6a521d55aacdeeb5
b 1110 a 2 b238654911689bfb626a3ef9dba4a1ca074e6a5e
a 1110 b 3 2b6515f29c20b8e9e17cc597527e516c0de8d612
b 1110 b 4 NULL
select a,b,c,d,sha1(t) from t1 where a='a' and b=1110 and c='a';
a b c d sha1(t)
a 1110 a 1 558a30713786aa72f66abc1e6a521d55aacdeeb5
select a,b,c,d,sha1(t) from t1 where a='a' and b=1110 and c='b';
a b c d sha1(t)
a 1110 b 3 2b6515f29c20b8e9e17cc597527e516c0de8d612
update t1 set t=@v4 where a='b' and b=1110 and c='a';
update t1 set t=@v2 where a='b' and b=1110 and c='b';
select a,b,c,d,sha1(t) from t1 order by c,a;
a b c d sha1(t)
a 1110 a 1 558a30713786aa72f66abc1e6a521d55aacdeeb5
b 1110 a 2 NULL
a 1110 b 3 2b6515f29c20b8e9e17cc597527e516c0de8d612
b 1110 b 4 b238654911689bfb626a3ef9dba4a1ca074e6a5e
update t1 set t=@v2 where d=2;
update t1 set t=@v4 where d=4;
select a,b,c,d,sha1(t) from t1 order by c,a;
a b c d sha1(t)
a 1110 a 1 558a30713786aa72f66abc1e6a521d55aacdeeb5
b 1110 a 2 b238654911689bfb626a3ef9dba4a1ca074e6a5e
a 1110 b 3 2b6515f29c20b8e9e17cc597527e516c0de8d612
b 1110 b 4 NULL
update t1 set t=@v4 where a='b' and c='a';
update t1 set t=@v2 where a='b' and c='b';
select a,b,c,d,sha1(t) from t1 order by c,a;
a b c d sha1(t)
a 1110 a 1 558a30713786aa72f66abc1e6a521d55aacdeeb5
b 1110 a 2 NULL
a 1110 b 3 2b6515f29c20b8e9e17cc597527e516c0de8d612
b 1110 b 4 b238654911689bfb626a3ef9dba4a1ca074e6a5e
update t1 set t=@v2 where b+d=1112;
update t1 set t=@v4 where b+d=1114;
select a,b,c,d,sha1(t) from t1 order by c,a;
a b c d sha1(t)
a 1110 a 1 558a30713786aa72f66abc1e6a521d55aacdeeb5
b 1110 a 2 b238654911689bfb626a3ef9dba4a1ca074e6a5e
a 1110 b 3 2b6515f29c20b8e9e17cc597527e516c0de8d612
b 1110 b 4 NULL
delete from t1 where a='a' and b=1110 and c='a';
delete from t1 where a='b' and c='a';
delete from t1 where d=3;
delete from t1 where b+d=1114;
select count(*) from t1;
count(*)
0
drop table t1;
mysql-test/t/ndb_blob.test
View file @
641c92dd
...
...
@@ -428,4 +428,60 @@ truncate t1;
select
count
(
*
)
from
t1
;
drop
table
t1
;
# -- bug#19956 - var* key, complex key
create
table
t1
(
a
varchar
(
40
)
not
null
,
b
mediumint
not
null
,
t
text
,
c
varchar
(
2
)
not
null
,
d
bigint
not
null
,
primary
key
(
a
,
b
,
c
),
key
(
c
,
a
),
unique
key
(
d
)
)
engine
=
ndb
;
--
disable_query_log
set
@
s1
=
'rggurloniukyehuxdbfkkyzlceixzrehqhvxvxbpwizzvjzpucqmzrhzxzfau'
;
set
@
s2
=
'ykyymbzqgqlcjhlhmyqelfoaaohvtbekvifukdtnvcrrjveevfakxarxexomz'
;
set
@
s3
=
'dbnfqyzgtqxalcrwtfsqabknvtfcbpoonxsjiqvmhnfikxxhcgoexlkoezvah'
;
set
@
v1
=
repeat
(
@
s1
,
123
);
set
@
v2
=
repeat
(
@
s2
,
234
);
set
@
v3
=
repeat
(
@
s3
,
345
);
set
@
v4
=
NULL
;
--
enable_query_log
insert
into
t1
(
a
,
b
,
c
,
d
,
t
)
values
(
'a'
,
1110
,
'a'
,
1
,
@
v1
);
insert
into
t1
(
a
,
b
,
c
,
d
,
t
)
values
(
'b'
,
1110
,
'a'
,
2
,
@
v2
);
insert
into
t1
(
a
,
b
,
c
,
d
,
t
)
values
(
'a'
,
1110
,
'b'
,
3
,
@
v3
);
insert
into
t1
(
a
,
b
,
c
,
d
,
t
)
values
(
'b'
,
1110
,
'b'
,
4
,
@
v4
);
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
order
by
c
,
a
;
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
where
a
=
'a'
and
b
=
1110
and
c
=
'a'
;
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
where
a
=
'a'
and
b
=
1110
and
c
=
'b'
;
update
t1
set
t
=@
v4
where
a
=
'b'
and
b
=
1110
and
c
=
'a'
;
update
t1
set
t
=@
v2
where
a
=
'b'
and
b
=
1110
and
c
=
'b'
;
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
order
by
c
,
a
;
update
t1
set
t
=@
v2
where
d
=
2
;
update
t1
set
t
=@
v4
where
d
=
4
;
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
order
by
c
,
a
;
update
t1
set
t
=@
v4
where
a
=
'b'
and
c
=
'a'
;
update
t1
set
t
=@
v2
where
a
=
'b'
and
c
=
'b'
;
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
order
by
c
,
a
;
update
t1
set
t
=@
v2
where
b
+
d
=
1112
;
update
t1
set
t
=@
v4
where
b
+
d
=
1114
;
select
a
,
b
,
c
,
d
,
sha1
(
t
)
from
t1
order
by
c
,
a
;
delete
from
t1
where
a
=
'a'
and
b
=
1110
and
c
=
'a'
;
delete
from
t1
where
a
=
'b'
and
c
=
'a'
;
delete
from
t1
where
d
=
3
;
delete
from
t1
where
b
+
d
=
1114
;
select
count
(
*
)
from
t1
;
drop
table
t1
;
# End of 4.1 tests
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