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
ab713b4b
Commit
ab713b4b
authored
Apr 21, 2005
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Speed up comparison functions by making
DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL a constant.
parent
ffeee9ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
innobase/data/data0type.c
innobase/data/data0type.c
+0
-1
innobase/include/data0type.h
innobase/include/data0type.h
+1
-1
innobase/rem/rem0cmp.c
innobase/rem/rem0cmp.c
+3
-3
sql/ha_innodb.cc
sql/ha_innodb.cc
+2
-2
No files found.
innobase/data/data0type.c
View file @
ab713b4b
...
...
@@ -39,7 +39,6 @@ column definitions, or records in the insert buffer, we use this
charset-collation code for them. */
ulint
data_mysql_default_charset_coll
=
99999999
;
ulint
data_mysql_latin1_swedish_charset_coll
=
99999999
;
dtype_t
dtype_binary_val
=
{
DATA_BINARY
,
0
,
0
,
0
,
0
,
0
};
dtype_t
*
dtype_binary
=
&
dtype_binary_val
;
...
...
innobase/include/data0type.h
View file @
ab713b4b
...
...
@@ -12,7 +12,7 @@ Created 1/16/1996 Heikki Tuuri
#include "univ.i"
extern
ulint
data_mysql_default_charset_coll
;
extern
ulint
data_mysql_latin1_swedish_charset_coll
;
#define DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL 8
/* SQL data type struct */
typedef
struct
dtype_struct
dtype_t
;
...
...
innobase/rem/rem0cmp.c
View file @
ab713b4b
...
...
@@ -320,7 +320,7 @@ cmp_data_data_slow(
||
(
cur_type
->
mtype
==
DATA_BLOB
&&
0
==
(
cur_type
->
prtype
&
DATA_BINARY_TYPE
)
&&
dtype_get_charset_coll
(
cur_type
->
prtype
)
!=
data_mysql_latin1_swedish_charset_coll
))
{
DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL
))
{
return
(
cmp_whole_field
(
cur_type
,
data1
,
(
unsigned
)
len1
,
...
...
@@ -530,7 +530,7 @@ cmp_dtuple_rec_with_match(
||
(
cur_type
->
mtype
==
DATA_BLOB
&&
0
==
(
cur_type
->
prtype
&
DATA_BINARY_TYPE
)
&&
dtype_get_charset_coll
(
cur_type
->
prtype
)
!=
data_mysql_latin1_swedish_charset_coll
))
{
DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL
))
{
ret
=
cmp_whole_field
(
cur_type
,
...
...
@@ -832,7 +832,7 @@ cmp_rec_rec_with_match(
||
(
cur_type
->
mtype
==
DATA_BLOB
&&
0
==
(
cur_type
->
prtype
&
DATA_BINARY_TYPE
)
&&
dtype_get_charset_coll
(
cur_type
->
prtype
)
!=
data_mysql_latin1_swedish_charset_coll
))
{
DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL
))
{
ret
=
cmp_whole_field
(
cur_type
,
rec1_b_ptr
,
(
unsigned
)
rec1_f_len
,
...
...
sql/ha_innodb.cc
View file @
ab713b4b
...
...
@@ -1271,8 +1271,8 @@ innobase_init(void)
data_mysql_default_charset_coll
=
(
ulint
)
default_charset_info
->
number
;
data_mysql_latin1_swedish_charset_coll
=
(
ulint
)
my_charset_latin1
.
number
;
ut_a
(
DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL
=
=
my_charset_latin1
.
number
)
;
/* Store the latin1_swedish_ci character ordering table to InnoDB. For
non-latin1_swedish_ci charsets we use the MySQL comparison functions,
...
...
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