summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2003-12-16 19:14:10 +0100
committerunknown <pem@mysql.comhem.se>2003-12-16 19:14:10 +0100
commitfd4544879b91fec027909f3607fe9fa68a214241 (patch)
tree12a86bd8ee75acaeb07b307f9ac5935d4e1fe80d
parentbc748bef530dcbcd155f3fe58f68d77520d7d264 (diff)
downloadmariadb-git-fd4544879b91fec027909f3607fe9fa68a214241.tar.gz
Renamed the "schema" column to "db" in mysql.proc to keep it in style with
all the other mysql.* tables.
-rw-r--r--Docs/sp-imp-spec.txt4
-rw-r--r--scripts/mysql_create_system_tables.sh4
-rw-r--r--scripts/mysql_fix_privilege_tables.sql4
-rw-r--r--sql/sp.cc6
4 files changed, 9 insertions, 9 deletions
diff --git a/Docs/sp-imp-spec.txt b/Docs/sp-imp-spec.txt
index ee9bc7a0e4f..c1b91d2c2c5 100644
--- a/Docs/sp-imp-spec.txt
+++ b/Docs/sp-imp-spec.txt
@@ -1056,7 +1056,7 @@
- The mysql.proc schema:
CREATE TABLE proc (
- schema char(64) binary DEFAULT '' NOT NULL,
+ db char(64) binary DEFAULT '' NOT NULL,
name char(64) binary DEFAULT '' NOT NULL,
type enum('FUNCTION','PROCEDURE') NOT NULL,
specific_name char(64) binary DEFAULT '' NOT NULL,
@@ -1093,7 +1093,7 @@
'NO_AUTO_VALUE_ON_ZERO'
) DEFAULT 0 NOT NULL,
comment char(64) binary DEFAULT '' NOT NULL,
- PRIMARY KEY (schema,name,type)
+ PRIMARY KEY (db,name,type)
) comment='Stored Procedures';
--
diff --git a/scripts/mysql_create_system_tables.sh b/scripts/mysql_create_system_tables.sh
index 57198abd53a..d20d745d514 100644
--- a/scripts/mysql_create_system_tables.sh
+++ b/scripts/mysql_create_system_tables.sh
@@ -289,7 +289,7 @@ fi
if test ! -f $mdata/proc.frm
then
c_p="$c_p CREATE TABLE proc ("
- c_p="$c_p schema char(64) binary DEFAULT '' NOT NULL,"
+ c_p="$c_p db char(64) binary DEFAULT '' NOT NULL,"
c_p="$c_p name char(64) binary DEFAULT '' NOT NULL,"
c_p="$c_p type enum('FUNCTION','PROCEDURE') NOT NULL,"
c_p="$c_p specific_name char(64) binary DEFAULT '' NOT NULL,"
@@ -326,7 +326,7 @@ then
c_p="$c_p 'NO_AUTO_VALUE_ON_ZERO'"
c_p="$c_p ) DEFAULT 0 NOT NULL,"
c_p="$c_p comment char(64) binary DEFAULT '' NOT NULL,"
- c_p="$c_p PRIMARY KEY (schema,name,type)"
+ c_p="$c_p PRIMARY KEY (db,name,type)"
c_p="$c_p ) comment='Stored Procedures';"
fi
diff --git a/scripts/mysql_fix_privilege_tables.sql b/scripts/mysql_fix_privilege_tables.sql
index 788913fa38e..115236948c9 100644
--- a/scripts/mysql_fix_privilege_tables.sql
+++ b/scripts/mysql_fix_privilege_tables.sql
@@ -140,7 +140,7 @@ unique index (name)
#
CREATE TABLE IF NOT EXISTS proc (
- schema char(64) binary DEFAULT '' NOT NULL,
+ db char(64) binary DEFAULT '' NOT NULL,
name char(64) binary DEFAULT '' NOT NULL,
type enum('FUNCTION','PROCEDURE') NOT NULL,
specific_name char(64) binary DEFAULT '' NOT NULL,
@@ -177,5 +177,5 @@ CREATE TABLE IF NOT EXISTS proc (
'NO_AUTO_VALUE_ON_ZERO'
) DEFAULT 0 NOT NULL,
comment char(64) binary DEFAULT '' NOT NULL,
- PRIMARY KEY (schema,name,type)
+ PRIMARY KEY (db,name,type)
) comment='Stored Procedures';
diff --git a/sql/sp.cc b/sql/sp.cc
index 4bb629b3dbe..6143c31176c 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -37,7 +37,7 @@ create_string(THD *thd, ulong *lenp,
enum
{
- MYSQL_PROC_FIELD_SCHEMA = 0,
+ MYSQL_PROC_FIELD_DB = 0,
MYSQL_PROC_FIELD_NAME,
MYSQL_PROC_FIELD_TYPE,
MYSQL_PROC_FIELD_SPECIFIC_NAME,
@@ -64,12 +64,12 @@ db_find_routine_aux(THD *thd, int type, char *name, uint namelen,
DBUG_ENTER("db_find_routine_aux");
DBUG_PRINT("enter", ("type: %d name: %*s", type, namelen, name));
TABLE *table;
- byte key[64+64+1]; // schema, name, type
+ byte key[64+64+1]; // db, name, type
uint keylen;
int ret;
// Put the key together
- memset(key, (int)' ', 64); // QQ Empty schema for now
+ memset(key, (int)' ', 64); // QQ Empty db for now
keylen= namelen;
if (keylen > 64)
keylen= 64;