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
65e27f60
Commit
65e27f60
authored
Nov 28, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after review fix(CRUM)
after merge fix
parent
fcb0b881
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
sql/item.cc
sql/item.cc
+2
-4
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-1
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+2
-3
No files found.
sql/item.cc
View file @
65e27f60
...
@@ -497,15 +497,13 @@ bool Item_asterisk_remover::fix_fields(THD *thd,
...
@@ -497,15 +497,13 @@ bool Item_asterisk_remover::fix_fields(THD *thd,
thd
->
fatal_error
=
1
;
// can't create Item => out of memory
thd
->
fatal_error
=
1
;
// can't create Item => out of memory
}
}
else
else
my_message
(
ER_SUBSELECT_NO_1_COL
,
ER
(
ER_SUBSELECT_NO_1_COL
),
my_error
(
ER_CARDINALITY_COL
,
MYF
(
0
),
1
);
MYF
(
0
));
}
}
else
else
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
fitem
->
table_name
);
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
fitem
->
table_name
);
}
}
else
else
my_message
(
ER_SUBSELECT_NO_1_COL
,
ER
(
ER_SUBSELECT_NO_1_COL
),
my_error
(
ER_CARDINALITY_COL
,
MYF
(
0
),
1
);
MYF
(
0
));
else
else
my_error
(
ER_NO_TABLES_USED
,
MYF
(
0
));
my_error
(
ER_NO_TABLES_USED
,
MYF
(
0
));
}
}
...
...
sql/item_cmpfunc.cc
View file @
65e27f60
...
@@ -129,7 +129,8 @@ void Item_bool_func2::fix_length_and_dec()
...
@@ -129,7 +129,8 @@ void Item_bool_func2::fix_length_and_dec()
int
Arg_comparator
::
set_compare_func
(
Item_bool_func2
*
item
,
Item_result
type
)
int
Arg_comparator
::
set_compare_func
(
Item_bool_func2
*
item
,
Item_result
type
)
{
{
owner
=
item
;
owner
=
item
;
func
=
comparator_matrix
[
type
][
owner
->
equal
];
func
=
comparator_matrix
[
type
][(
owner
->
functype
()
==
Item_func
::
EQUAL_FUNC
)
?
1
:
0
];
if
(
type
==
ROW_RESULT
)
if
(
type
==
ROW_RESULT
)
{
{
uint
n
=
args
[
0
]
->
cols
();
uint
n
=
args
[
0
]
->
cols
();
...
...
sql/item_cmpfunc.h
View file @
65e27f60
...
@@ -34,9 +34,8 @@ class Item_bool_func2 :public Item_int_func
...
@@ -34,9 +34,8 @@ class Item_bool_func2 :public Item_int_func
{
/* Bool with 2 string args */
{
/* Bool with 2 string args */
protected:
protected:
String
tmp_value1
,
tmp_value2
;
String
tmp_value1
,
tmp_value2
;
bool
equal
;
public:
public:
Item_bool_func2
(
Item
*
a
,
Item
*
b
)
:
Item_int_func
(
a
,
b
)
,
equal
(
0
)
{}
Item_bool_func2
(
Item
*
a
,
Item
*
b
)
:
Item_int_func
(
a
,
b
)
{}
void
fix_length_and_dec
();
void
fix_length_and_dec
();
void
set_cmp_func
()
void
set_cmp_func
()
{
{
...
@@ -89,7 +88,7 @@ class Item_func_eq :public Item_bool_rowready_func2
...
@@ -89,7 +88,7 @@ class Item_func_eq :public Item_bool_rowready_func2
class
Item_func_equal
:
public
Item_bool_rowready_func2
class
Item_func_equal
:
public
Item_bool_rowready_func2
{
{
public:
public:
Item_func_equal
(
Item
*
a
,
Item
*
b
)
:
Item_bool_rowready_func2
(
a
,
b
)
{
equal
=
1
;
};
Item_func_equal
(
Item
*
a
,
Item
*
b
)
:
Item_bool_rowready_func2
(
a
,
b
)
{};
longlong
val_int
();
longlong
val_int
();
void
fix_length_and_dec
();
void
fix_length_and_dec
();
enum
Functype
functype
()
const
{
return
EQUAL_FUNC
;
}
enum
Functype
functype
()
const
{
return
EQUAL_FUNC
;
}
...
...
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