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
dba579bf
Commit
dba579bf
authored
Mar 13, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Case insensitivrly has been added in charset and collation names.
parent
eebc00a5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
mysql-test/r/ctype_collate.result
mysql-test/r/ctype_collate.result
+4
-0
mysql-test/t/ctype_collate.test
mysql-test/t/ctype_collate.test
+2
-0
mysys/charset.c
mysys/charset.c
+2
-2
No files found.
mysql-test/r/ctype_collate.result
View file @
dba579bf
...
...
@@ -528,6 +528,10 @@ SET NAMES latin1 COLLATE latin1_bin;
SHOW VARIABLES LIKE 'client_collation';
Variable_name Value
client_collation latin1_bin
SET NAMES LATIN1 COLLATE Latin1_Bin;
SHOW VARIABLES LIKE 'client_collation';
Variable_name Value
client_collation latin1_bin
SET NAMES 'latin1' COLLATE 'latin1_bin';
SHOW VARIABLES LIKE 'client_collation';
Variable_name Value
...
...
mysql-test/t/ctype_collate.test
View file @
dba579bf
...
...
@@ -135,6 +135,8 @@ SHOW VARIABLES LIKE 'client_collation';
SELECT
charset
(
'a'
),
collation
(
'a'
),
coercibility
(
'a'
),
'a'
=
'A'
;
SET
NAMES
latin1
COLLATE
latin1_bin
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SET
NAMES
LATIN1
COLLATE
Latin1_Bin
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SET
NAMES
'latin1'
COLLATE
'latin1_bin'
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SELECT
charset
(
'a'
),
collation
(
'a'
),
coercibility
(
'a'
),
'a'
=
'A'
;
...
...
mysys/charset.c
View file @
dba579bf
...
...
@@ -479,7 +479,7 @@ uint get_charset_number(const char *charset_name)
for
(
cs
=
all_charsets
;
cs
<
all_charsets
+
255
;
++
cs
)
{
if
(
cs
[
0
]
&&
cs
[
0
]
->
name
&&
!
strcmp
(
cs
[
0
]
->
name
,
charset_name
))
if
(
cs
[
0
]
&&
cs
[
0
]
->
name
&&
!
strc
asec
mp
(
cs
[
0
]
->
name
,
charset_name
))
return
cs
[
0
]
->
number
;
}
return
0
;
/* this mimics find_type() */
...
...
@@ -593,7 +593,7 @@ CHARSET_INFO *get_charset_by_csname(const char *cs_name,
for
(
css
=
all_charsets
;
css
<
all_charsets
+
255
;
++
css
)
{
if
(
css
[
0
]
&&
(
css
[
0
]
->
state
&
cs_flags
)
&&
css
[
0
]
->
csname
&&
!
strcmp
(
css
[
0
]
->
csname
,
cs_name
))
css
[
0
]
->
csname
&&
!
strc
asec
mp
(
css
[
0
]
->
csname
,
cs_name
))
{
cs
=
css
[
0
]
->
number
?
get_internal_charset
(
css
[
0
]
->
number
,
flags
)
:
NULL
;
break
;
...
...
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