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
d09f865d
Commit
d09f865d
authored
Mar 15, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_lex.cc:
Use LEX charset instead of system one
parent
15dbe91a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
sql/sql_lex.cc
sql/sql_lex.cc
+5
-4
No files found.
sql/sql_lex.cc
View file @
d09f865d
...
...
@@ -209,6 +209,7 @@ static char *get_text(LEX *lex)
{
reg1
uchar
c
,
sep
;
uint
found_escape
=
0
;
CHARSET_INFO
*
cs
=
lex
->
thd
->
variables
.
thd_charset
;
sep
=
yyGetLast
();
// String should end with this
//lex->tok_start=lex->ptr-1; // Remember '
...
...
@@ -217,8 +218,8 @@ static char *get_text(LEX *lex)
c
=
yyGet
();
#ifdef USE_MB
int
l
;
if
(
use_mb
(
system_charset_info
)
&&
(
l
=
my_ismbchar
(
system_charset_info
,
if
(
use_mb
(
cs
)
&&
(
l
=
my_ismbchar
(
cs
,
(
const
char
*
)
lex
->
ptr
-
1
,
(
const
char
*
)
lex
->
end_of_query
)))
{
lex
->
ptr
+=
l
-
1
;
...
...
@@ -262,8 +263,8 @@ static char *get_text(LEX *lex)
{
#ifdef USE_MB
int
l
;
if
(
use_mb
(
system_charset_info
)
&&
(
l
=
my_ismbchar
(
system_charset_info
,
if
(
use_mb
(
cs
)
&&
(
l
=
my_ismbchar
(
cs
,
(
const
char
*
)
str
,
(
const
char
*
)
end
)))
{
while
(
l
--
)
*
to
++
=
*
str
++
;
...
...
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