1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix wrong memory allocation in SHOW OPEN TABLES

This commit is contained in:
monty@hundin.mysql.fi
2001-11-08 00:43:27 +02:00
parent 55180ca1b3
commit 29c527cf8d
4 changed files with 12 additions and 5 deletions

View File

@@ -6,8 +6,8 @@ aclocal; autoheader; aclocal; automake; autoconf
CC=ccc CFLAGS="-fast" CXX=cxx CXXFLAGS="-fast -noexceptions -nortti" ./configure --prefix=/usr/local/mysql --disable-shared --with-extra-charsets=complex --enable-thread-safe-client --with-mysqld-ldflags=-non_shared --with-client-ldflags=-non_shared
make
rm */.deps/*
make -j2
find . -name ".deps" | xargs rm -r
make
if [ $? = 0 ]
then

View File

@@ -2254,7 +2254,8 @@ AC_SUBST(server_scripts)
# Some usefull subst
AC_SUBST(CC)
AC_SUBST(GXX)
AC_SUBST(TOOLS_LIBS)
#Remove TOOLS_LIBS, because this is included in LIBRARIES
#AC_SUBST(TOOLS_LIBS)
# Output results
AC_OUTPUT(Makefile extra/Makefile mysys/Makefile isam/Makefile \

View File

@@ -818,6 +818,12 @@ a
1
2
4
alter table t1 add b int;
select * from t1;
a b
1 NULL
2 NULL
4 NULL
drop table t1;
create table t1
(

View File

@@ -160,7 +160,7 @@ OPEN_TABLE_LIST *list_open_tables(THD *thd, const char *wild)
if (table)
continue;
if (!(*start_list = (OPEN_TABLE_LIST *)
sql_alloc(sizeof(*start_list)+entry->key_length)))
sql_alloc(sizeof(**start_list)+entry->key_length)))
{
open_list=0; // Out of memory
break;