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
e51adff0
Commit
e51adff0
authored
Mar 28, 2006
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review fix for BUG#17015: Routine name truncation not an error
parent
05826af9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
sql/field.h
sql/field.h
+6
-0
sql/sp.cc
sql/sp.cc
+4
-5
No files found.
sql/field.h
View file @
e51adff0
...
@@ -319,6 +319,12 @@ public:
...
@@ -319,6 +319,12 @@ public:
/* convert decimal to longlong with overflow check */
/* convert decimal to longlong with overflow check */
longlong
convert_decimal2longlong
(
const
my_decimal
*
val
,
bool
unsigned_flag
,
longlong
convert_decimal2longlong
(
const
my_decimal
*
val
,
bool
unsigned_flag
,
int
*
err
);
int
*
err
);
/* The max. number of characters */
inline
uint32
Field
::
char_length
()
const
{
return
field_length
/
charset
()
->
mbmaxlen
;
}
friend
bool
reopen_table
(
THD
*
,
struct
st_table
*
,
bool
);
friend
bool
reopen_table
(
THD
*
,
struct
st_table
*
,
bool
);
friend
int
cre_myisam
(
my_string
name
,
register
TABLE
*
form
,
uint
options
,
friend
int
cre_myisam
(
my_string
name
,
register
TABLE
*
form
,
uint
options
,
ulonglong
auto_increment_value
);
ulonglong
auto_increment_value
);
...
...
sql/sp.cc
View file @
e51adff0
...
@@ -509,11 +509,10 @@ db_create_routine(THD *thd, int type, sp_head *sp)
...
@@ -509,11 +509,10 @@ db_create_routine(THD *thd, int type, sp_head *sp)
goto
done
;
goto
done
;
}
}
if
(
(
system_charset_info
->
cset
->
numchars
(
system_charset_info
,
if
(
system_charset_info
->
cset
->
numchars
(
system_charset_info
,
sp
->
m_name
.
str
,
sp
->
m_name
.
str
,
sp
->
m_name
.
str
+
sp
->
m_name
.
length
)
*
sp
->
m_name
.
str
+
sp
->
m_name
.
length
)
>
table
->
field
[
MYSQL_PROC_FIELD_NAME
]
->
charset
()
->
mbmaxlen
)
>
table
->
field
[
MYSQL_PROC_FIELD_NAME
]
->
char_length
())
table
->
field
[
MYSQL_PROC_FIELD_NAME
]
->
field_length
)
{
{
ret
=
SP_BAD_IDENTIFIER
;
ret
=
SP_BAD_IDENTIFIER
;
goto
done
;
goto
done
;
...
...
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