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
79c848a6
Commit
79c848a6
authored
Aug 18, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed Arg_comparator::compare_int -> compare_int_signed
parent
6f9ed2fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-2
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+4
-4
No files found.
sql/item_cmpfunc.cc
View file @
79c848a6
...
@@ -317,7 +317,7 @@ int Arg_comparator::set_compare_func(Item_bool_func2 *item, Item_result type)
...
@@ -317,7 +317,7 @@ int Arg_comparator::set_compare_func(Item_bool_func2 *item, Item_result type)
}
}
else
if
(
type
==
INT_RESULT
)
else
if
(
type
==
INT_RESULT
)
{
{
if
(
func
==
&
Arg_comparator
::
compare_int
)
if
(
func
==
&
Arg_comparator
::
compare_int
_signed
)
{
{
if
((
*
a
)
->
unsigned_flag
)
if
((
*
a
)
->
unsigned_flag
)
func
=
((
*
b
)
->
unsigned_flag
)
?
&
Arg_comparator
::
compare_int_unsigned
:
func
=
((
*
b
)
->
unsigned_flag
)
?
&
Arg_comparator
::
compare_int_unsigned
:
...
@@ -432,7 +432,7 @@ int Arg_comparator::compare_e_real()
...
@@ -432,7 +432,7 @@ int Arg_comparator::compare_e_real()
return
test
(
val1
==
val2
);
return
test
(
val1
==
val2
);
}
}
int
Arg_comparator
::
compare_int
()
int
Arg_comparator
::
compare_int
_signed
()
{
{
longlong
val1
=
(
*
a
)
->
val_int
();
longlong
val1
=
(
*
a
)
->
val_int
();
if
(
!
(
*
a
)
->
null_value
)
if
(
!
(
*
a
)
->
null_value
)
...
...
sql/item_cmpfunc.h
View file @
79c848a6
...
@@ -65,7 +65,7 @@ class Arg_comparator: public Sql_alloc
...
@@ -65,7 +65,7 @@ class Arg_comparator: public Sql_alloc
int
compare_string
();
// compare args[0] & args[1]
int
compare_string
();
// compare args[0] & args[1]
int
compare_binary_string
();
// compare args[0] & args[1]
int
compare_binary_string
();
// compare args[0] & args[1]
int
compare_real
();
// compare args[0] & args[1]
int
compare_real
();
// compare args[0] & args[1]
int
compare_int
();
// compare args[0] & args[1]
int
compare_int
_signed
();
// compare args[0] & args[1]
int
compare_int_signed_unsigned
();
int
compare_int_signed_unsigned
();
int
compare_int_unsigned_signed
();
int
compare_int_unsigned_signed
();
int
compare_int_unsigned
();
int
compare_int_unsigned
();
...
...
sql/mysqld.cc
View file @
79c848a6
...
@@ -237,10 +237,10 @@ bool opt_help= 0;
...
@@ -237,10 +237,10 @@ bool opt_help= 0;
bool
opt_verbose
=
0
;
bool
opt_verbose
=
0
;
arg_cmp_func
Arg_comparator
::
comparator_matrix
[
4
][
2
]
=
arg_cmp_func
Arg_comparator
::
comparator_matrix
[
4
][
2
]
=
{{
&
Arg_comparator
::
compare_string
,
&
Arg_comparator
::
compare_e_string
},
{{
&
Arg_comparator
::
compare_string
,
&
Arg_comparator
::
compare_e_string
},
{
&
Arg_comparator
::
compare_real
,
&
Arg_comparator
::
compare_e_real
},
{
&
Arg_comparator
::
compare_real
,
&
Arg_comparator
::
compare_e_real
},
{
&
Arg_comparator
::
compare_int
,
&
Arg_comparator
::
compare_e_int
},
{
&
Arg_comparator
::
compare_int
_signed
,
&
Arg_comparator
::
compare_e_int
},
{
&
Arg_comparator
::
compare_row
,
&
Arg_comparator
::
compare_e_row
}};
{
&
Arg_comparator
::
compare_row
,
&
Arg_comparator
::
compare_e_row
}};
/* Global variables */
/* Global variables */
...
...
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