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
92a533eb
Commit
92a533eb
authored
Aug 28, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Little but nasty bug with BDB and alter table
parent
36d1a9a4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
5 deletions
+34
-5
Docs/manual.texi
Docs/manual.texi
+3
-0
mysql-test/r/bdb-alter-table-1.result
mysql-test/r/bdb-alter-table-1.result
+4
-0
mysql-test/r/bdb-alter-table-2.result
mysql-test/r/bdb-alter-table-2.result
+4
-0
mysql-test/t/bdb-alter-table-1.test
mysql-test/t/bdb-alter-table-1.test
+12
-0
mysql-test/t/bdb-alter-table-2.test
mysql-test/t/bdb-alter-table-2.test
+3
-0
sql/sql_table.cc
sql/sql_table.cc
+8
-5
No files found.
Docs/manual.texi
View file @
92a533eb
...
...
@@ -46929,6 +46929,9 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.53
@itemize @bullet
@item
Fixed a bug with BDB @code[ALTER TABLE] with dropping column, and shutdown
immediately thereafter.
@item
Fixed problem with @code{UNSIGNED BIGINT} on AIX (again).
@item
Fixed bug in pthread_mutex_trylock() on HPUX 11.0
mysql-test/r/bdb-alter-table-1.result
0 → 100644
View file @
92a533eb
objid tablename oid test
1 t1 4 9
2 metatable 1 9
3 metaindex 1 9
mysql-test/r/bdb-alter-table-2.result
0 → 100644
View file @
92a533eb
objid tablename oid
1 t1 4
2 metatable 1
3 metaindex 1
mysql-test/t/bdb-alter-table-1.test
0 → 100644
View file @
92a533eb
--
source
include
/
have_bdb
.
inc
#
# Small basic test for ALTER TABLE bug ..
#
drop
table
if
exists
t1
;
create
table
t1
(
objid
BIGINT
not
null
,
tablename
varchar
(
64
),
oid
BIGINT
not
null
,
test
BIGINT
,
PRIMARY
KEY
(
objid
),
UNIQUE
(
tablename
))
type
=
BDB
;
insert
into
t1
values
(
1
,
't1'
,
4
,
9
);
insert
into
t1
values
(
2
,
'metatable'
,
1
,
9
);
insert
into
t1
values
(
3
,
'metaindex'
,
1
,
9
);
select
*
from
t1
;
alter
table
t1
drop
column
test
;
mysql-test/t/bdb-alter-table-2.test
0 → 100644
View file @
92a533eb
--
source
include
/
have_bdb
.
inc
select
*
from
t1
;
drop
table
t1
;
\ No newline at end of file
sql/sql_table.cc
View file @
92a533eb
...
...
@@ -1665,11 +1665,6 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
VOID
(
pthread_cond_broadcast
(
&
COND_refresh
));
goto
err
;
}
#ifdef HAVE_BERKELEY_DB
extern
bool
berkeley_flush_logs
(
void
);
if
(
old_db_type
==
DB_TYPE_BERKELEY_DB
&&
berkeley_flush_logs
())
goto
err
;
#endif
thd
->
proc_info
=
"end"
;
mysql_update_log
.
write
(
thd
,
thd
->
query
,
thd
->
query_length
);
if
(
mysql_bin_log
.
is_open
())
...
...
@@ -1679,6 +1674,14 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
}
VOID
(
pthread_cond_broadcast
(
&
COND_refresh
));
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
#ifdef HAVE_BERKELEY_DB
extern
bool
berkeley_flush_logs
(
void
);
if
(
old_db_type
==
DB_TYPE_BERKELEY_DB
)
{
(
void
)
berkeley_flush_logs
();
table
=
open_ltable
(
thd
,
table_list
,
TL_READ
);
}
#endif
end_temporary:
sprintf
(
tmp_name
,
ER
(
ER_INSERT_INFO
),(
ulong
)
(
copied
+
deleted
),
...
...
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