From 390b3e745c05a39704c01365958710189e216f79 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Dec 2002 18:25:36 +0100 Subject: Added collection of called procedures in a list. Fixed eval bug; now conditions with local variables work in WHILE et al. Made mysql_install_db.sh create proc table. scripts/mysql_install_db.sh: Added creation of the mysql.proc table. Note: The table format will change later, right now it's rather minimalistic, just so things can be tested (and the database can easily be recreated when I break it :-/ ). sql/item.h: Removed unused method. sql/sp_head.cc: Added collection of called procedures in a list. Fixed eval bug; now conditions with local variables work in WHILE et al. --- scripts/mysql_install_db.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scripts') diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh index 5e139dc652b..6029ac2518a 100644 --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh @@ -306,6 +306,18 @@ then c_c="$c_c comment='Column privileges';" fi +if test ! -f $mdata/proc.frm +then + echo "Preparing proc table" + + c_p="$c_p CREATE TABLE proc (" + c_p="$c_p name char(64) binary DEFAULT '' NOT NULL," + c_p="$c_p body blob DEFAULT '' NOT NULL," + c_p="$c_p PRIMARY KEY (name)" + c_p="$c_p )" + c_p="$c_p comment='Stored Procedures';" +fi + echo "Installing all prepared tables" if ( cat << END_OF_DATA @@ -324,6 +336,7 @@ $i_f $c_t $c_c +$c_p END_OF_DATA cat fill_func_tables.sql ) | eval "$execdir/mysqld $defaults --bootstrap --skip-grant-tables \ -- cgit v1.2.1