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
7a1fddaa
Commit
7a1fddaa
authored
Dec 16, 2003
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed the "schema" column to "db" in mysql.proc to keep it in style with
all the other mysql.* tables.
parent
bb51272b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
Docs/sp-imp-spec.txt
Docs/sp-imp-spec.txt
+2
-2
scripts/mysql_create_system_tables.sh
scripts/mysql_create_system_tables.sh
+2
-2
scripts/mysql_fix_privilege_tables.sql
scripts/mysql_fix_privilege_tables.sql
+2
-2
sql/sp.cc
sql/sp.cc
+3
-3
No files found.
Docs/sp-imp-spec.txt
View file @
7a1fddaa
...
...
@@ -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';
--
scripts/mysql_create_system_tables.sh
View file @
7a1fddaa
...
...
@@ -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
...
...
scripts/mysql_fix_privilege_tables.sql
View file @
7a1fddaa
...
...
@@ -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
';
sql/sp.cc
View file @
7a1fddaa
...
...
@@ -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
;
...
...
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