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
932a97a7
Commit
932a97a7
authored
Mar 17, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: innodb-zip.test: Add a test for inserting a record that
does not fit by itself on the compressed page.
parent
80da2874
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/innodb-zip.result
mysql-test/innodb-zip.result
+9
-0
mysql-test/innodb-zip.test
mysql-test/innodb-zip.test
+15
-0
No files found.
mysql-test/innodb-zip.result
View file @
932a97a7
...
@@ -122,5 +122,14 @@ table_schema table_name row_format
...
@@ -122,5 +122,14 @@ table_schema table_name row_format
test t1 Compressed
test t1 Compressed
test t2 Compact
test t2 Compact
drop table t1,t2;
drop table t1,t2;
CREATE TABLE t1(
c TEXT NOT NULL, d TEXT NOT NULL,
PRIMARY KEY (c(767),d(767)))
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
INSERT INTO t1 VALUES(
'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~(*,.02468:<>@BDFHJLNPRTVXZ\^`bdfhjlnprtvxz|~)+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}(+.147:=@CFILORUX[^adgjmpsvy|(+.147:=@CFILORUX[^adgjmpsvy|(+.147:=@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L\l|5EUeu.>N^n~7GWgw0@P`p)9IYiy2BRbr+;K[k{4DTdt-=M]m}6FVfv/?O_o(9J[l}7HYj{5FWhy3DUfw1BSdu/@Qbs->O`q+<M^o):K\m~8IZk|6GXiz4EVgx2CTev0ARct.?Par,=N_p*;L]n(:L^p+=Oas.@Rdv1CUgy4FXj|7I[m(:L^p+=Oas.@Rdv1CUgy4FXj|7');
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
drop table t1;
set global innodb_file_per_table=0;
set global innodb_file_per_table=0;
set global innodb_file_format=0;
set global innodb_file_format=0;
mysql-test/innodb-zip.test
View file @
932a97a7
...
@@ -84,5 +84,20 @@ SELECT table_schema, table_name, row_format
...
@@ -84,5 +84,20 @@ SELECT table_schema, table_name, row_format
FROM
information_schema
.
tables
WHERE
engine
=
'innodb'
;
FROM
information_schema
.
tables
WHERE
engine
=
'innodb'
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
# data generated with
CREATE
TABLE
t1
(
c
TEXT
NOT
NULL
,
d
TEXT
NOT
NULL
,
PRIMARY
KEY
(
c
(
767
),
d
(
767
)))
ENGINE
=
InnoDB
ROW_FORMAT
=
COMPRESSED
KEY_BLOCK_SIZE
=
1
CHARSET
=
ASCII
;
# random data generated with
# perl -e 'my $i,$j,$k;for($j=1;$j<19;$j++){for($i=$k=0;$k<87;$k++,$i+=$j,$i%=87){printf "%c",$i+40}}'
# truncated to 2*767 bytes and split to two 767-byte columns
--
error
ER_TOO_BIG_ROWSIZE
INSERT
INTO
t1
VALUES
(
'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~(*,.02468:<>@BDFHJLNPRTVXZ\^`bdfhjlnprtvxz|~)+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}(+.147:=@CFILORUX[^adgjmpsvy|(+.147:=@CFILORUX[^adgjmpsvy|(+.147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Scs,<L\l|5EUeu.>N^n~7GWgw0@P`p)9IYiy2BRbr+;K[k{4DTdt-=M]m}6FVfv/?O_o(9J[l}7HYj{5FWhy3DUfw1BSdu/@Qbs->O`q+<M^o):K\m~8IZk|6GXiz4EVgx2CTev0ARct.?Par,=N_p*;L]n(:L^p+=Oas.@Rdv1CUgy4FXj|7I[m(:L^p+=Oas.@Rdv1CUgy4FXj|7'
);
drop
table
t1
;
eval
set
global
innodb_file_per_table
=
$per_table
;
eval
set
global
innodb_file_per_table
=
$per_table
;
eval
set
global
innodb_file_format
=
$format
;
eval
set
global
innodb_file_format
=
$format
;
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