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
ba4e466e
Commit
ba4e466e
authored
Mar 13, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Case insensitivrly has been added in charset and collation names.
parent
a1aeaecc
Changes
3
Hide 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 @
ba4e466e
...
@@ -528,6 +528,10 @@ SET NAMES latin1 COLLATE latin1_bin;
...
@@ -528,6 +528,10 @@ SET NAMES latin1 COLLATE latin1_bin;
SHOW VARIABLES LIKE 'client_collation';
SHOW VARIABLES LIKE 'client_collation';
Variable_name Value
Variable_name Value
client_collation latin1_bin
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';
SET NAMES 'latin1' COLLATE 'latin1_bin';
SHOW VARIABLES LIKE 'client_collation';
SHOW VARIABLES LIKE 'client_collation';
Variable_name Value
Variable_name Value
...
...
mysql-test/t/ctype_collate.test
View file @
ba4e466e
...
@@ -135,6 +135,8 @@ SHOW VARIABLES LIKE 'client_collation';
...
@@ -135,6 +135,8 @@ SHOW VARIABLES LIKE 'client_collation';
SELECT
charset
(
'a'
),
collation
(
'a'
),
coercibility
(
'a'
),
'a'
=
'A'
;
SELECT
charset
(
'a'
),
collation
(
'a'
),
coercibility
(
'a'
),
'a'
=
'A'
;
SET
NAMES
latin1
COLLATE
latin1_bin
;
SET
NAMES
latin1
COLLATE
latin1_bin
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SET
NAMES
LATIN1
COLLATE
Latin1_Bin
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SET
NAMES
'latin1'
COLLATE
'latin1_bin'
;
SET
NAMES
'latin1'
COLLATE
'latin1_bin'
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SHOW
VARIABLES
LIKE
'client_collation'
;
SELECT
charset
(
'a'
),
collation
(
'a'
),
coercibility
(
'a'
),
'a'
=
'A'
;
SELECT
charset
(
'a'
),
collation
(
'a'
),
coercibility
(
'a'
),
'a'
=
'A'
;
...
...
mysys/charset.c
View file @
ba4e466e
...
@@ -479,7 +479,7 @@ uint get_charset_number(const char *charset_name)
...
@@ -479,7 +479,7 @@ uint get_charset_number(const char *charset_name)
for
(
cs
=
all_charsets
;
cs
<
all_charsets
+
255
;
++
cs
)
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
cs
[
0
]
->
number
;
}
}
return
0
;
/* this mimics find_type() */
return
0
;
/* this mimics find_type() */
...
@@ -593,7 +593,7 @@ CHARSET_INFO *get_charset_by_csname(const char *cs_name,
...
@@ -593,7 +593,7 @@ CHARSET_INFO *get_charset_by_csname(const char *cs_name,
for
(
css
=
all_charsets
;
css
<
all_charsets
+
255
;
++
css
)
for
(
css
=
all_charsets
;
css
<
all_charsets
+
255
;
++
css
)
{
{
if
(
css
[
0
]
&&
(
css
[
0
]
->
state
&
cs_flags
)
&&
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
;
cs
=
css
[
0
]
->
number
?
get_internal_charset
(
css
[
0
]
->
number
,
flags
)
:
NULL
;
break
;
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