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
5258ea12
Commit
5258ea12
authored
Aug 27, 2004
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table.cc:
Bug #4558 Escape handling error for ENUM values in SJIS encoding
parent
43b792d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
sql/table.cc
sql/table.cc
+20
-1
No files found.
sql/table.cc
View file @
5258ea12
...
...
@@ -993,8 +993,26 @@ ulong next_io_size(register ulong pos)
void
append_unescaped
(
String
*
res
,
const
char
*
pos
)
{
for
(;
*
pos
;
pos
++
)
#ifdef USE_MB
const
char
*
end
=
pos
+
strlen
(
pos
);
#endif
for
(;
*
pos
;
)
{
#ifdef USE_MB
/*
Note, there is no needs to propagate this code into 4.1.
*/
uint
mblen
;
if
(
use_mb
(
default_charset_info
)
&&
(
mblen
=
my_ismbchar
(
default_charset_info
,
pos
,
end
)))
{
res
->
append
(
pos
,
mblen
);
pos
+=
mblen
;
continue
;
}
#endif
switch
(
*
pos
)
{
case
0
:
/* Must be escaped for 'mysql' */
res
->
append
(
'\\'
);
...
...
@@ -1020,6 +1038,7 @@ void append_unescaped(String *res,const char *pos)
res
->
append
(
*
pos
);
break
;
}
pos
++
;
}
}
...
...
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