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
ed25dfe2
Commit
ed25dfe2
authored
Dec 29, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl1804 - ndb - types in tup, fix dummy usage in handler
parent
52fb0ec5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
ndb/include/ndbapi/NdbScanFilter.hpp
ndb/include/ndbapi/NdbScanFilter.hpp
+18
-18
ndb/src/ndbapi/NdbScanFilter.cpp
ndb/src/ndbapi/NdbScanFilter.cpp
+6
-6
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+1
-1
No files found.
ndb/include/ndbapi/NdbScanFilter.hpp
View file @
ed25dfe2
...
...
@@ -48,12 +48,12 @@ public:
enum
BinaryCondition
{
LE
=
0
,
///< lower bound
LT
=
1
,
///< lower bound, strict
GE
=
2
,
///< upper bound
GT
=
3
,
///< upper bound, strict
EQ
=
4
,
///< equality
NE
=
5
COND_
LE
=
0
,
///< lower bound
COND_
LT
=
1
,
///< lower bound, strict
COND_
GE
=
2
,
///< upper bound
COND_
GT
=
3
,
///< upper bound, strict
COND_
EQ
=
4
,
///< equality
COND_
NE
=
5
};
/**
...
...
@@ -97,53 +97,53 @@ public:
/** Compare column value with integer for equal
* ®return 0 if successful, -1 otherwize
*/
int
eq
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
EQ
,
ColId
,
&
value
,
4
);}
int
eq
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
COND_
EQ
,
ColId
,
&
value
,
4
);}
/** Compare column value with integer for not equal.
* ®return 0 if successful, -1 otherwize
*/
int
ne
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
NE
,
ColId
,
&
value
,
4
);}
int
ne
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
COND_
NE
,
ColId
,
&
value
,
4
);}
/** Compare column value with integer for less than.
* ®return 0 if successful, -1 otherwize
*/
int
lt
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
LT
,
ColId
,
&
value
,
4
);}
int
lt
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
COND_
LT
,
ColId
,
&
value
,
4
);}
/** Compare column value with integer for less than or equal.
* ®return 0 if successful, -1 otherwize
*/
int
le
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
LE
,
ColId
,
&
value
,
4
);}
int
le
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
COND_
LE
,
ColId
,
&
value
,
4
);}
/** Compare column value with integer for greater than.
* ®return 0 if successful, -1 otherwize
*/
int
gt
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
GT
,
ColId
,
&
value
,
4
);}
int
gt
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
COND_
GT
,
ColId
,
&
value
,
4
);}
/** Compare column value with integer for greater than or equal.
* ®return 0 if successful, -1 otherwize
*/
int
ge
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
GE
,
ColId
,
&
value
,
4
);}
int
ge
(
int
ColId
,
Uint32
value
)
{
return
cmp
(
COND_
GE
,
ColId
,
&
value
,
4
);}
/** Compare column value with integer for equal. 64-bit.
* ®return 0 if successful, -1 otherwize
*/
int
eq
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
EQ
,
ColId
,
&
value
,
8
);}
int
eq
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
COND_
EQ
,
ColId
,
&
value
,
8
);}
/** Compare column value with integer for not equal. 64-bit.
* ®return 0 if successful, -1 otherwize
*/
int
ne
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
NE
,
ColId
,
&
value
,
8
);}
int
ne
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
COND_
NE
,
ColId
,
&
value
,
8
);}
/** Compare column value with integer for less than. 64-bit.
* ®return 0 if successful, -1 otherwize
*/
int
lt
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
LT
,
ColId
,
&
value
,
8
);}
int
lt
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
COND_
LT
,
ColId
,
&
value
,
8
);}
/** Compare column value with integer for less than or equal. 64-bit.
* ®return 0 if successful, -1 otherwize
*/
int
le
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
LE
,
ColId
,
&
value
,
8
);}
int
le
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
COND_
LE
,
ColId
,
&
value
,
8
);}
/** Compare column value with integer for greater than. 64-bit.
* ®return 0 if successful, -1 otherwize
*/
int
gt
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
GT
,
ColId
,
&
value
,
8
);}
int
gt
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
COND_
GT
,
ColId
,
&
value
,
8
);}
/** Compare column value with integer for greater than or equal. 64-bit.
* ®return 0 if successful, -1 otherwize
*/
int
ge
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
GE
,
ColId
,
&
value
,
8
);}
int
ge
(
int
ColId
,
Uint64
value
)
{
return
cmp
(
COND_
GE
,
ColId
,
&
value
,
8
);}
/** @} *********************************************************************/
/** Check if column value is NULL */
...
...
ndb/src/ndbapi/NdbScanFilter.cpp
View file @
ed25dfe2
...
...
@@ -414,17 +414,17 @@ NdbScanFilter::cmp(BinaryCondition cond, int ColId,
const
void
*
val
,
Uint32
len
)
{
switch
(
cond
){
case
LE
:
case
COND_
LE
:
return
m_impl
.
cond_col_const
(
Interpreter
::
LE
,
ColId
,
val
,
len
);
case
LT
:
case
COND_
LT
:
return
m_impl
.
cond_col_const
(
Interpreter
::
LT
,
ColId
,
val
,
len
);
case
GE
:
case
COND_
GE
:
return
m_impl
.
cond_col_const
(
Interpreter
::
GE
,
ColId
,
val
,
len
);
case
GT
:
case
COND_
GT
:
return
m_impl
.
cond_col_const
(
Interpreter
::
GT
,
ColId
,
val
,
len
);
case
EQ
:
case
COND_
EQ
:
return
m_impl
.
cond_col_const
(
Interpreter
::
EQ
,
ColId
,
val
,
len
);
case
NE
:
case
COND_
NE
:
return
m_impl
.
cond_col_const
(
Interpreter
::
NE
,
ColId
,
val
,
len
);
}
return
-
1
;
...
...
sql/ha_ndbcluster.cc
View file @
ed25dfe2
...
...
@@ -1671,7 +1671,7 @@ int ha_ndbcluster::filtered_scan(const byte *key, uint key_len,
// Define scan filter
if
(
field
->
real_type
()
==
MYSQL_TYPE_STRING
)
sf
.
eq
(
ndb_fieldnr
,
key_ptr
,
field_len
);
sf
.
cmp
(
NdbScanFilter
::
COND_EQ
,
ndb_fieldnr
,
key_ptr
,
field_len
);
else
{
if
(
field_len
==
8
)
...
...
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