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
2435dce9
Commit
2435dce9
authored
Dec 05, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.23
parents
fc06433a
82a96692
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
17 deletions
+32
-17
.bzrignore
.bzrignore
+13
-13
mysql-test/t/temp_table.test
mysql-test/t/temp_table.test
+9
-0
sql/sql_table.cc
sql/sql_table.cc
+7
-2
support-files/mysql.server.sh
support-files/mysql.server.sh
+3
-2
No files found.
.bzrignore
View file @
2435dce9
...
...
@@ -73,6 +73,9 @@ Makefile.in'
PENDING/*
TAGS
aclocal.m4
autom4te-2.53.cache/output.0
autom4te-2.53.cache/requests
autom4te-2.53.cache/traces.0
autom4te.cache/*
autom4te.cache/output.0
autom4te.cache/requests
...
...
@@ -114,6 +117,9 @@ bdb/build_win32/include.tcl
bdb/build_win32/libdb.rc
bdb/db/crdel_auto.c
bdb/db/db_auto.c
bdb/dist/autom4te-2.53.cache/output.0
bdb/dist/autom4te-2.53.cache/requests
bdb/dist/autom4te-2.53.cache/traces.0
bdb/dist/autom4te.cache/*
bdb/dist/autom4te.cache/output.0
bdb/dist/autom4te.cache/requests
...
...
@@ -173,6 +179,8 @@ bdb/test/include.tcl
bdb/test/logtrack.list
bdb/txn/txn_auto.c
binary/*
bkpull.log
build.log
client/insert_test
client/log_event.cc
client/log_event.h
...
...
@@ -199,6 +207,7 @@ config.log
config.status
configure
core
core.2430
db-*.*.*
dbug/user.t
depcomp
...
...
@@ -216,6 +225,9 @@ include/my_config.h
include/my_global.h
include/mysql_version.h
include/widec.h
innobase/autom4te-2.53.cache/output.0
innobase/autom4te-2.53.cache/requests
innobase/autom4te-2.53.cache/traces.0
innobase/autom4te.cache/*
innobase/autom4te.cache/output.0
innobase/autom4te.cache/requests
...
...
@@ -406,6 +418,7 @@ mysys/test_thr_alarm
mysys/test_thr_lock
mysys/test_vsnprintf
mysys/testhash
pull.log
regex/re
repl-tests/test-repl-ts/repl-timestamp.master.reject
repl-tests/test-repl/foo-dump-slave.master.
...
...
@@ -509,16 +522,3 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
autom4te-2.53.cache/output.0
autom4te-2.53.cache/requests
autom4te-2.53.cache/traces.0
bdb/dist/autom4te-2.53.cache/output.0
bdb/dist/autom4te-2.53.cache/requests
bdb/dist/autom4te-2.53.cache/traces.0
bkpull.log
build.log
innobase/autom4te-2.53.cache/output.0
innobase/autom4te-2.53.cache/requests
innobase/autom4te-2.53.cache/traces.0
pull.log
core.2430
mysql-test/t/temp_table.test
View file @
2435dce9
...
...
@@ -61,6 +61,15 @@ insert into t2 values (1,1),(2,1),(3,1),(4,2);
select
one
.
id
,
two
.
val
,
elt
(
two
.
val
,
'one'
,
'two'
)
from
t1
one
,
t2
two
where
two
.
id
=
one
.
id
order
by
one
.
id
;
drop
table
t1
,
t2
;
#
# Test of failed ALTER TABLE on temporary table
#
create
temporary
table
t1
(
a
int
not
null
);
insert
into
t1
values
(
1
),(
1
);
--
error
1062
alter
table
t1
add
primary
key
(
a
);
drop
table
t1
;
#
# In MySQL 4.0.4 doing a GROUP BY on a NULL column created a disk based
# temporary table when a memory based one would be good enough.
...
...
sql/sql_table.cc
View file @
2435dce9
...
...
@@ -1771,8 +1771,14 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
/* We changed a temporary table */
if
(
error
)
{
/*
* The following function call will also free a
* new_table pointer.
* Therefore, here new_table pointer is not free'd as it is
* free'd in close_temporary() which is called by by the
* close_temporary_table() function.
*/
close_temporary_table
(
thd
,
new_db
,
tmp_name
);
my_free
((
gptr
)
new_table
,
MYF
(
0
));
goto
err
;
}
/* Close lock if this is a transactional table */
...
...
@@ -2092,7 +2098,6 @@ copy_data_between_tables(TABLE *from,TABLE *to,
if
(
to
->
file
->
external_lock
(
thd
,
F_UNLCK
))
error
=
1
;
err:
tmp_error
=
ha_recovery_logging
(
thd
,
TRUE
);
free_io_cache
(
from
);
*
copied
=
found_count
;
*
deleted
=
delete_count
;
...
...
support-files/mysql.server.sh
View file @
2435dce9
...
...
@@ -79,7 +79,8 @@ parse_arguments() {
done
}
# Get arguments from the my.cnf file, groups [mysqld] and [mysql_server]
# Get arguments from the my.cnf file,
# groups [mysqld] [mysql_server] and [mysql.server]
if
test
-x
./bin/my_print_defaults
then
print_defaults
=
"./bin/my_print_defaults"
...
...
@@ -117,7 +118,7 @@ else
test
-z
"
$print_defaults
"
&&
print_defaults
=
"my_print_defaults"
fi
parse_arguments
`
$print_defaults
$defaults
mysqld mysql_
server
`
parse_arguments
`
$print_defaults
mysqld mysql_server mysql.
server
`
# Safeguard (relative paths, core dumps..)
cd
$basedir
...
...
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