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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
79eb297b
Commit
79eb297b
authored
Jul 25, 2024
by
Sergei Golubchik
Committed by
Vicențiu Ciorbaru
Jul 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test that the vector index size is zero after TRUNCATE in MyISAM
parent
0c45567e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
mysql-test/main/vector,myisam.rdiff
mysql-test/main/vector,myisam.rdiff
+32
-0
mysql-test/main/vector.test
mysql-test/main/vector.test
+8
-0
No files found.
mysql-test/main/vector,myisam.rdiff
0 → 100644
View file @
79eb297b
--- a/mysql-test/main/vector.result
+++ b/mysql-test/main/vector.result
@@ -305,7 +305,29 @@
db.opt
create table t1 (id int auto_increment primary key, v blob not null, vector index (v));
truncate table t1;
insert t1 (v) values (x'e360d63ebe554f3fcdbc523f4522193f5236083d');
+
+MyISAM file: datadir/test/t1#i#01
+Record format: Packed
+Character set: latin1_swedish_ci (8)
+Data records: 1 Deleted blocks: 0
+Recordlength: 30
+
+table description:
+Key Start Len Index Type
+1 3 6 unique varbin NULL
+2 2 1 multip. int8
truncate table t1;
+
+MyISAM file: datadir/test/t1#i#01
+Record format: Packed
+Character set: latin1_swedish_ci (8)
+Data records: 0 Deleted blocks: 0
+Recordlength: 30
+
+table description:
+Key Start Len Index Type
+1 3 6 unique varbin NULL
+2 2 1 multip. int8
select * from t1;
id v
show create table t1;
mysql-test/main/vector.test
View file @
79eb297b
...
...
@@ -105,7 +105,15 @@ list_files $datadir/test;
create
table
t1
(
id
int
auto_increment
primary
key
,
v
blob
not
null
,
vector
index
(
v
));
truncate
table
t1
;
insert
t1
(
v
)
values
(
x
'e360d63ebe554f3fcdbc523f4522193f5236083d'
);
if
(
$MTR_COMBINATION_MYISAM
)
{
--
replace_result
$datadir
datadir
--
exec
$MYISAMCHK
-
d
$datadir
/
test
/
t1
#i#01
}
truncate
table
t1
;
if
(
$MTR_COMBINATION_MYISAM
)
{
--
replace_result
$datadir
datadir
--
exec
$MYISAMCHK
-
d
$datadir
/
test
/
t1
#i#01
}
select
*
from
t1
;
replace_result
InnoDB
MyISAM
;
show
create
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