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
44619bb9
Commit
44619bb9
authored
Sep 12, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr/home/ram/work/5.0.b12917
parents
c39b4110
838d8ed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+24
-2
No files found.
sql/ha_ndbcluster.cc
View file @
44619bb9
...
...
@@ -6618,13 +6618,24 @@ void ndb_serialize_cond(const Item *item, void *arg)
case
Item_func
:
:
BETWEEN
:
{
DBUG_PRINT
(
"info"
,
(
"BETWEEN, rewriting using AND"
));
Item_func_between
*
between_func
=
(
Item_func_between
*
)
func_item
;
Ndb_rewrite_context
*
rewrite_context
=
new
Ndb_rewrite_context
(
func_item
);
rewrite_context
->
next
=
context
->
rewrite_stack
;
context
->
rewrite_stack
=
rewrite_context
;
if
(
between_func
->
negated
)
{
DBUG_PRINT
(
"info"
,
(
"NOT_FUNC"
));
curr_cond
->
ndb_item
=
new
Ndb_item
(
Item_func
::
NOT_FUNC
,
1
);
prev_cond
=
curr_cond
;
curr_cond
=
context
->
cond_ptr
=
new
Ndb_cond
();
curr_cond
->
prev
=
prev_cond
;
prev_cond
->
next
=
curr_cond
;
}
DBUG_PRINT
(
"info"
,
(
"COND_AND_FUNC"
));
curr_cond
->
ndb_item
=
new
Ndb_item
(
Item_func
::
COND_AND_FUNC
,
func_item
->
argument_count
()
-
1
);
curr_cond
->
ndb_item
=
new
Ndb_item
(
Item_func
::
COND_AND_FUNC
,
func_item
->
argument_count
()
-
1
);
context
->
expect_only
(
Item
::
FIELD_ITEM
);
context
->
expect
(
Item
::
INT_ITEM
);
context
->
expect
(
Item
::
STRING_ITEM
);
...
...
@@ -6635,10 +6646,20 @@ void ndb_serialize_cond(const Item *item, void *arg)
case
Item_func
:
:
IN_FUNC
:
{
DBUG_PRINT
(
"info"
,
(
"IN_FUNC, rewriting using OR"
));
Item_func_in
*
in_func
=
(
Item_func_in
*
)
func_item
;
Ndb_rewrite_context
*
rewrite_context
=
new
Ndb_rewrite_context
(
func_item
);
rewrite_context
->
next
=
context
->
rewrite_stack
;
context
->
rewrite_stack
=
rewrite_context
;
if
(
in_func
->
negated
)
{
DBUG_PRINT
(
"info"
,
(
"NOT_FUNC"
));
curr_cond
->
ndb_item
=
new
Ndb_item
(
Item_func
::
NOT_FUNC
,
1
);
prev_cond
=
curr_cond
;
curr_cond
=
context
->
cond_ptr
=
new
Ndb_cond
();
curr_cond
->
prev
=
prev_cond
;
prev_cond
->
next
=
curr_cond
;
}
DBUG_PRINT
(
"info"
,
(
"COND_OR_FUNC"
));
curr_cond
->
ndb_item
=
new
Ndb_item
(
Item_func
::
COND_OR_FUNC
,
func_item
->
argument_count
()
-
1
);
...
...
@@ -6960,6 +6981,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
DBUG_PRINT
(
"info"
,
(
"End of condition group"
));
prev_cond
=
curr_cond
;
curr_cond
=
context
->
cond_ptr
=
new
Ndb_cond
();
curr_cond
->
prev
=
prev_cond
;
prev_cond
->
next
=
curr_cond
;
curr_cond
->
ndb_item
=
new
Ndb_item
(
NDB_END_COND
);
// Pop rewrite stack
...
...
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