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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7c6522a7
Commit
7c6522a7
authored
Jun 02, 2003
by
gluh@gluh.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'Expand the mysql.proc table to include (almost) all fields' task(851)
Fix after review
parent
99121518
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
mysql-test/install_test_db.sh
mysql-test/install_test_db.sh
+1
-1
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+1
-1
sql/sp.cc
sql/sp.cc
+5
-9
sql/sp_head.cc
sql/sp_head.cc
+1
-1
No files found.
mysql-test/install_test_db.sh
View file @
7c6522a7
...
...
@@ -254,8 +254,8 @@ then
c_p
=
"
$c_p
type enum('function','procedure') NOT NULL,"
c_p
=
"
$c_p
body blob DEFAULT '' NOT NULL,"
c_p
=
"
$c_p
creator char(77) binary DEFAULT '' NOT NULL,"
c_p
=
"
$c_p
created timestamp,"
c_p
=
"
$c_p
modified timestamp,"
c_p
=
"
$c_p
created timestamp,"
c_p
=
"
$c_p
suid enum ('N', 'Y') DEFAULT 'Y' NOT NULL,"
c_p
=
"
$c_p
comment char(64) binary DEFAULT '' NOT NULL,"
c_p
=
"
$c_p
PRIMARY KEY (name,type)"
...
...
scripts/mysql_install_db.sh
View file @
7c6522a7
...
...
@@ -362,8 +362,8 @@ then
c_p
=
"
$c_p
type enum('function','procedure') NOT NULL,"
c_p
=
"
$c_p
body blob DEFAULT '' NOT NULL,"
c_p
=
"
$c_p
creator char(77) binary DEFAULT '' NOT NULL,"
c_p
=
"
$c_p
created timestamp,"
c_p
=
"
$c_p
modified timestamp,"
c_p
=
"
$c_p
created timestamp,"
c_p
=
"
$c_p
suid enum ('N', 'Y') DEFAULT 'Y' NOT NULL,"
c_p
=
"
$c_p
comment char(64) binary DEFAULT '' NOT NULL,"
c_p
=
"
$c_p
PRIMARY KEY (name,type)"
...
...
sql/sp.cc
View file @
7c6522a7
...
...
@@ -118,8 +118,8 @@ db_find_routine(THD *thd, int type, char *name, uint namelen, sp_head **sphp)
goto
done
;
}
creat
ed
=
table
->
field
[
4
]
->
val_int
();
modifi
ed
=
table
->
field
[
5
]
->
val_int
();
modifi
ed
=
table
->
field
[
4
]
->
val_int
();
creat
ed
=
table
->
field
[
5
]
->
val_int
();
if
((
ptr
=
get_field
(
&
thd
->
mem_root
,
table
->
field
[
6
]))
==
NULL
)
{
...
...
@@ -130,14 +130,9 @@ db_find_routine(THD *thd, int type, char *name, uint namelen, sp_head **sphp)
suid
=
0
;
table
->
field
[
7
]
->
val_str
(
&
str
,
&
str
);
length
=
str
.
length
();
ptr
=
0
;
if
(
length
)
{
ptr
=
(
char
*
)
alloc_root
(
&
thd
->
mem_root
,
length
+
1
);
memcpy
(
ptr
,
str
.
ptr
(),(
uint
)
length
);
ptr
[
length
]
=
0
;
}
if
((
length
=
str
.
length
()))
ptr
=
strmake_root
(
&
thd
->
mem_root
,
str
.
ptr
(),
length
);
if
(
opened
)
{
...
...
@@ -203,6 +198,7 @@ db_create_routine(THD *thd, int type,
table
->
field
[
1
]
->
store
((
longlong
)
type
);
table
->
field
[
2
]
->
store
(
def
,
deflen
,
system_charset_info
);
table
->
field
[
3
]
->
store
(
creator
,
(
uint
)
strlen
(
creator
),
system_charset_info
);
((
Field_timestamp
*
)
table
->
field
[
5
])
->
set_time
();
if
(
suid
)
table
->
field
[
6
]
->
store
((
longlong
)
suid
);
if
(
comment
)
...
...
sql/sp_head.cc
View file @
7c6522a7
...
...
@@ -101,7 +101,7 @@ sp_head::sp_head(LEX_STRING *name, LEX *lex, LEX_STRING *comment, char suid)
m_name
.
length
=
name
->
length
;
m_name
.
str
=
name
->
str
;
m_defstr
.
length
=
lex
->
end_of_query
-
lex
->
buf
;
m_defstr
.
str
=
sql_
strmake
(
dstr
,
m_defstr
.
length
);
m_defstr
.
str
=
lex
->
thd
->
strmake
(
dstr
,
m_defstr
.
length
);
m_comment
.
length
=
0
;
m_comment
.
str
=
0
;
...
...
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