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
1e8251ac
Commit
1e8251ac
authored
Jun 29, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a fix (bug #4304: TRUNCATE <table of type BDB> , wrong result).
parent
7e970e35
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
mysql-test/r/bdb.result
mysql-test/r/bdb.result
+7
-0
mysql-test/t/bdb.test
mysql-test/t/bdb.test
+11
-0
sql/handler.h
sql/handler.h
+2
-1
No files found.
mysql-test/r/bdb.result
View file @
1e8251ac
...
...
@@ -1210,3 +1210,10 @@ a b
3 three
4 four
drop table t1, t2;
create table t1 (a int, b varchar(30), primary key(a)) engine = bdb;
insert into t1 values (1,'one');
commit;
truncate t1;
select * from t1;
a b
drop table t1;
mysql-test/t/bdb.test
View file @
1e8251ac
...
...
@@ -850,3 +850,14 @@ insert into t2 (a, b)
select
a
,
b
from
t1
where
(
a
,
b
)
in
(
select
a
,
b
from
t1
);
select
*
from
t2
;
drop
table
t1
,
t2
;
#
# Bug #4304: TRUNCATE <table of type BDB> , wrong result
#
create
table
t1
(
a
int
,
b
varchar
(
30
),
primary
key
(
a
))
engine
=
bdb
;
insert
into
t1
values
(
1
,
'one'
);
commit
;
truncate
t1
;
select
*
from
t1
;
drop
table
t1
;
sql/handler.h
View file @
1e8251ac
...
...
@@ -515,7 +515,8 @@ extern TYPELIB tx_isolation_typelib;
#define ha_commit(thd) (ha_commit_trans((thd), &((thd)->transaction.all)))
#define ha_rollback(thd) (ha_rollback_trans((thd), &((thd)->transaction.all)))
#define ha_supports_generate(T) (T != DB_TYPE_INNODB)
#define ha_supports_generate(T) (T != DB_TYPE_INNODB && \
T != DB_TYPE_BERKELEY_DB)
bool
ha_caching_allowed
(
THD
*
thd
,
char
*
table_key
,
uint
key_length
,
uint8
cache_type
);
...
...
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