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
44621265
Commit
44621265
authored
Apr 23, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed void* to const NdbDictionary::Table*
parent
059bd679
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
sql/ha_ndbcluster_cond.cc
sql/ha_ndbcluster_cond.cc
+4
-5
sql/ha_ndbcluster_cond.h
sql/ha_ndbcluster_cond.h
+5
-4
No files found.
sql/ha_ndbcluster_cond.cc
View file @
44621265
...
...
@@ -251,7 +251,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
*/
if
(
context
->
table
->
s
==
field
->
table
->
s
)
{
const
NDBTAB
*
tab
=
(
const
NDBTAB
*
)
context
->
ndb_table
;
const
NDBTAB
*
tab
=
context
->
ndb_table
;
DBUG_PRINT
(
"info"
,
(
"FIELD_ITEM"
));
DBUG_PRINT
(
"info"
,
(
"table %s"
,
tab
->
getName
()));
DBUG_PRINT
(
"info"
,
(
"column %s"
,
field
->
field_name
));
...
...
@@ -907,7 +907,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
const
COND
*
ha_ndbcluster_cond
::
cond_push
(
const
COND
*
cond
,
TABLE
*
table
,
NDBTAB
*
ndb_table
)
TABLE
*
table
,
const
NDBTAB
*
ndb_table
)
{
DBUG_ENTER
(
"cond_push"
);
Ndb_cond_stack
*
ndb_cond
=
new
Ndb_cond_stack
();
...
...
@@ -963,12 +963,11 @@ ha_ndbcluster_cond::cond_clear()
bool
ha_ndbcluster_cond
::
serialize_cond
(
const
COND
*
cond
,
Ndb_cond_stack
*
ndb_cond
,
TABLE
*
table
,
NDBTAB
*
ndb_table
)
TABLE
*
table
,
const
NDBTAB
*
ndb_table
)
{
DBUG_ENTER
(
"serialize_cond"
);
Item
*
item
=
(
Item
*
)
cond
;
Ndb_cond_traverse_context
context
(
table
,
(
void
*
)
ndb_table
,
ndb_cond
);
Ndb_cond_traverse_context
context
(
table
,
ndb_table
,
ndb_cond
);
// Expect a logical expression
context
.
expect
(
Item
::
FUNC_ITEM
);
context
.
expect
(
Item
::
COND_ITEM
);
...
...
sql/ha_ndbcluster_cond.h
View file @
44621265
...
...
@@ -315,7 +315,8 @@ class Ndb_rewrite_context : public Sql_alloc
class
Ndb_cond_traverse_context
:
public
Sql_alloc
{
public:
Ndb_cond_traverse_context
(
TABLE
*
tab
,
void
*
ndb_tab
,
Ndb_cond_stack
*
stack
)
Ndb_cond_traverse_context
(
TABLE
*
tab
,
const
NdbDictionary
::
Table
*
ndb_tab
,
Ndb_cond_stack
*
stack
)
:
table
(
tab
),
ndb_table
(
ndb_tab
),
supported
(
TRUE
),
stack_ptr
(
stack
),
cond_ptr
(
NULL
),
skip
(
0
),
collation
(
NULL
),
rewrite_stack
(
NULL
)
...
...
@@ -422,7 +423,7 @@ class Ndb_cond_traverse_context : public Sql_alloc
};
TABLE
*
table
;
void
*
ndb_table
;
const
NdbDictionary
::
Table
*
ndb_table
;
bool
supported
;
Ndb_cond_stack
*
stack_ptr
;
Ndb_cond
*
cond_ptr
;
...
...
@@ -445,7 +446,7 @@ class ha_ndbcluster_cond
~
ha_ndbcluster_cond
()
{
if
(
m_cond_stack
)
delete
m_cond_stack
;
}
const
COND
*
cond_push
(
const
COND
*
cond
,
TABLE
*
table
,
NdbDictionary
::
Table
*
ndb_table
);
TABLE
*
table
,
const
NdbDictionary
::
Table
*
ndb_table
);
void
cond_pop
();
void
cond_clear
();
int
generate_scan_filter
(
NdbScanOperation
*
op
);
...
...
@@ -457,7 +458,7 @@ class ha_ndbcluster_cond
byte
*
buf
);
private:
bool
serialize_cond
(
const
COND
*
cond
,
Ndb_cond_stack
*
ndb_cond
,
TABLE
*
table
,
NdbDictionary
::
Table
*
ndb_table
);
TABLE
*
table
,
const
NdbDictionary
::
Table
*
ndb_table
);
int
build_scan_filter_predicate
(
Ndb_cond
*
&
cond
,
NdbScanFilter
*
filter
,
bool
negated
=
false
);
...
...
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