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
6c08e3c2
Commit
6c08e3c2
authored
Apr 13, 2009
by
Narayanan V
Browse files
Options
Browse Files
Download
Plain Diff
merging with mysql-5.1-bugteam
parents
d7026cb9
4a12ecf7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
storage/ibmdb2i/db2i_misc.h
storage/ibmdb2i/db2i_misc.h
+8
-2
storage/ibmdb2i/ha_ibmdb2i.cc
storage/ibmdb2i/ha_ibmdb2i.cc
+1
-1
No files found.
storage/ibmdb2i/db2i_misc.h
View file @
6c08e3c2
...
...
@@ -92,11 +92,17 @@ bool convertMySQLNameToDB2Name(const char* input,
return
(
o
<=
outlen
-
1
);
}
bool
is
UpperOrQuote
(
const
CHARSET_INFO
*
cs
,
const
char
*
s
)
bool
is
OrdinaryIdentifier
(
const
char
*
s
)
{
while
(
*
s
)
{
if
(
my_isupper
(
cs
,
*
s
)
||
(
*
s
==
'"'
))
if
(
my_isupper
(
system_charset_info
,
*
s
)
||
my_isdigit
(
system_charset_info
,
*
s
)
||
(
*
s
==
'_'
)
||
(
*
s
==
'@'
)
||
(
*
s
==
'$'
)
||
(
*
s
==
'#'
)
||
(
*
s
==
'"'
))
++
s
;
else
return
false
;
...
...
storage/ibmdb2i/ha_ibmdb2i.cc
View file @
6c08e3c2
...
...
@@ -2122,7 +2122,7 @@ int ha_ibmdb2i::create(const char *name, TABLE *table_arg,
if
(
osVersion
.
v
<
6
)
{
if
(
strlen
(
libName
)
>
MAX_DB2_V5R4_LIBNAME_LENGTH
+
(
is
UpperOrQuote
(
system_charset_info
,
libName
)
?
2
:
0
))
MAX_DB2_V5R4_LIBNAME_LENGTH
+
(
is
OrdinaryIdentifier
(
libName
)
?
2
:
0
))
{
getErrTxt
(
DB2I_ERR_TOO_LONG_SCHEMA
,
libName
,
MAX_DB2_V5R4_LIBNAME_LENGTH
);
DBUG_RETURN
(
DB2I_ERR_TOO_LONG_SCHEMA
);
...
...
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