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
cec3fb4a
Commit
cec3fb4a
authored
Jun 21, 2003
by
bk@mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/bk/mysql-4.1
parents
a89a7eb3
4c7714b7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
22 deletions
+43
-22
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
scripts/Makefile.am
scripts/Makefile.am
+1
-1
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+41
-21
No files found.
BitKeeper/etc/logging_ok
View file @
cec3fb4a
...
@@ -17,6 +17,7 @@ bar@gw.udmsearch.izhnet.ru
...
@@ -17,6 +17,7 @@ bar@gw.udmsearch.izhnet.ru
bell@laptop.sanja.is.com.ua
bell@laptop.sanja.is.com.ua
bell@sanja.is.com.ua
bell@sanja.is.com.ua
bk@admin.bk
bk@admin.bk
bk@mysql.r18.ru
carsten@tsort.bitbybit.dk
carsten@tsort.bitbybit.dk
davida@isil.mysql.com
davida@isil.mysql.com
gluh@gluh.(none)
gluh@gluh.(none)
...
...
scripts/Makefile.am
View file @
cec3fb4a
...
@@ -62,7 +62,7 @@ EXTRA_DIST = $(EXTRA_SCRIPTS) \
...
@@ -62,7 +62,7 @@ EXTRA_DIST = $(EXTRA_SCRIPTS) \
mysqlaccess.conf
\
mysqlaccess.conf
\
mysqlbug
mysqlbug
pkgdata_DATA
=
fill_help_tables.sql mysql_fix_privilege_tables.sql
dist_
pkgdata_DATA
=
fill_help_tables.sql mysql_fix_privilege_tables.sql
# mysqlbug should be distributed built so that people can report build
# mysqlbug should be distributed built so that people can report build
# failures with it.
# failures with it.
...
...
sql/item_cmpfunc.cc
View file @
cec3fb4a
...
@@ -90,38 +90,58 @@ static bool convert_constant_item(Field *field, Item **item)
...
@@ -90,38 +90,58 @@ static bool convert_constant_item(Field *field, Item **item)
bool
Item_bool_func2
::
set_cmp_charset
(
CHARSET_INFO
*
cs1
,
enum
coercion
co1
,
bool
Item_bool_func2
::
set_cmp_charset
(
CHARSET_INFO
*
cs1
,
enum
coercion
co1
,
CHARSET_INFO
*
cs2
,
enum
coercion
co2
)
CHARSET_INFO
*
cs2
,
enum
coercion
co2
)
{
{
if
(
(
cs1
==
&
my_charset_bin
)
||
(
cs2
==
&
my_charset_bin
)
)
if
(
cs1
==
&
my_charset_bin
||
cs2
==
&
my_charset_bin
)
{
{
cmp_charset
=
&
my_charset_bin
;
cmp_charset
=
&
my_charset_bin
;
coercibility
=
co1
>
co2
?
co1
:
co2
;
return
0
;
return
0
;
}
}
if
((
co1
==
COER_NOCOLL
)
||
(
co2
==
COER_NOCOLL
))
if
(
!
my_charset_same
(
cs1
,
cs2
))
return
1
;
{
/*
if
(
!
my_charset_same
(
cs1
,
cs2
))
We do allow to use BLOBS together with character strings
BLOBS have more precedance
*/
if
((
co1
<=
co2
)
&&
(
cs1
==&
my_charset_bin
))
{
cmp_charset
=
cs1
;
coercibility
=
co1
;
}
else
if
((
co2
<=
co1
)
&&
(
cs2
==&
my_charset_bin
))
{
cmp_charset
=
cs2
;
coercibility
=
co2
;
}
else
{
cmp_charset
=
0
;
coercibility
=
COER_NOCOLL
;
return
1
;
return
1
;
}
if
(
co1
<
co2
)
}
else
if
(
co1
<
co2
)
{
cmp_charset
=
cs1
;
cmp_charset
=
cs1
;
coercibility
=
co1
;
}
else
if
(
co2
<
co1
)
else
if
(
co2
<
co1
)
{
cmp_charset
=
cs2
;
cmp_charset
=
cs2
;
else
// co1==co2
coercibility
=
co1
;
}
else
{
{
if
(
cs1
==
cs2
)
if
(
cs1
==
cs2
)
{
cmp_charset
=
cs1
;
cmp_charset
=
cs1
;
coercibility
=
co1
;
}
else
else
{
{
if
(
co1
==
COER_COERCIBLE
)
coercibility
=
COER_NOCOLL
;
{
cmp_charset
=
0
;
CHARSET_INFO
*
c
;
return
(
co1
==
COER_EXPLICIT
)
?
1
:
0
;
if
((
c
=
get_charset_by_csname
(
cs1
->
csname
,
MY_CS_PRIMARY
,
MYF
(
0
))))
{
cmp_charset
=
c
;
return
0
;
}
}
return
1
;
}
}
}
}
return
0
;
return
0
;
...
...
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