diff options
author | unknown <pem@mysql.com> | 2002-12-13 18:25:36 +0100 |
---|---|---|
committer | unknown <pem@mysql.com> | 2002-12-13 18:25:36 +0100 |
commit | 390b3e745c05a39704c01365958710189e216f79 (patch) | |
tree | 9f76b149122a3fe6fcfd6b48d2b395e79cc6910f /scripts | |
parent | b1b62274856c81a5f1f7a49384fc93810fd2a2bd (diff) | |
download | mariadb-git-390b3e745c05a39704c01365958710189e216f79.tar.gz |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_install_db.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 \ |