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
d9c3a96f
Commit
d9c3a96f
authored
Jun 07, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: innodb-index.test: Check the length of the long columns.
parent
1bddcae5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
mysql-test/innodb-index.result
mysql-test/innodb-index.result
+15
-0
mysql-test/innodb-index.test
mysql-test/innodb-index.test
+3
-0
No files found.
mysql-test/innodb-index.result
View file @
d9c3a96f
...
...
@@ -947,6 +947,10 @@ select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
a b=repeat(d,10*a) c=repeat(d,20*a)
22 1 1
44 1 1
select a,length(b),length(c),d from t1;
a length(b) length(c) d
22 2200 4400 jejdkrun87
44 4400 8800 adfd72nh9k
alter table t1 add primary key (a), add key (b(20));
select count(*) from t1 where a=44;
count(*)
...
...
@@ -955,6 +959,10 @@ select a,b=repeat(d,10*a),c=repeat(d,20*a) from t1;
a b=repeat(d,10*a) c=repeat(d,20*a)
22 1 1
44 1 1
select a,length(b),length(c),d from t1;
a length(b) length(c) d
22 2200 4400 jejdkrun87
44 4400 8800 adfd72nh9k
insert into t1 values (33,repeat('adfdpplkeock',330),repeat('adfdpplkeock',660),'adfdpplkeock');
insert into t1 values (55,repeat('adfdijnmnb78k',550),repeat('adfdijnmnb78k',1100),'adfdijnmnb78k');
insert into t1 values (66,repeat('adfdijn0loKNHJik',660),repeat('adfdijn0loKNHJik',1320),'adfdijn0loKNHJik');
...
...
@@ -981,4 +989,11 @@ a b=repeat(d,10*a) c=repeat(d,20*a)
44 1 1
55 1 1
66 1 1
select a,length(b),length(c),d from t1;
a length(b) length(c) d
22 2200 4400 jejdkrun87
33 3960 7920 adfdpplkeock
44 4400 8800 adfd72nh9k
55 7150 14300 adfdijnmnb78k
66 10560 21120 adfdijn0loKNHJik
drop table t1;
mysql-test/innodb-index.test
View file @
d9c3a96f
...
...
@@ -271,9 +271,11 @@ insert into t1 values (44,repeat('adfd72nh9k',440),repeat('adfd72nh9k',880),'adf
select
count
(
*
)
from
t1
where
a
=
44
;
select
a
,
b
=
repeat
(
d
,
10
*
a
),
c
=
repeat
(
d
,
20
*
a
)
from
t1
;
select
a
,
length
(
b
),
length
(
c
),
d
from
t1
;
alter
table
t1
add
primary
key
(
a
),
add
key
(
b
(
20
));
select
count
(
*
)
from
t1
where
a
=
44
;
select
a
,
b
=
repeat
(
d
,
10
*
a
),
c
=
repeat
(
d
,
20
*
a
)
from
t1
;
select
a
,
length
(
b
),
length
(
c
),
d
from
t1
;
insert
into
t1
values
(
33
,
repeat
(
'adfdpplkeock'
,
330
),
repeat
(
'adfdpplkeock'
,
660
),
'adfdpplkeock'
);
insert
into
t1
values
(
55
,
repeat
(
'adfdijnmnb78k'
,
550
),
repeat
(
'adfdijnmnb78k'
,
1100
),
'adfdijnmnb78k'
);
insert
into
t1
values
(
66
,
repeat
(
'adfdijn0loKNHJik'
,
660
),
repeat
(
'adfdijn0loKNHJik'
,
1320
),
'adfdijn0loKNHJik'
);
...
...
@@ -281,4 +283,5 @@ show create table t1;
check
table
t1
;
explain
select
*
from
t1
where
b
like
'adfd%'
;
select
a
,
b
=
repeat
(
d
,
10
*
a
),
c
=
repeat
(
d
,
20
*
a
)
from
t1
;
select
a
,
length
(
b
),
length
(
c
),
d
from
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