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
25b372b3
Commit
25b372b3
authored
Apr 24, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back-ported compiler warning fixes from 5.1 to ease merging
parent
417eba83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
sql/ha_ndbcluster_cond.cc
sql/ha_ndbcluster_cond.cc
+15
-14
No files found.
sql/ha_ndbcluster_cond.cc
View file @
25b372b3
...
@@ -270,7 +270,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
...
@@ -270,7 +270,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
type
==
MYSQL_TYPE_DATETIME
)
type
==
MYSQL_TYPE_DATETIME
)
?
(
context
->
expecting_field_result
(
STRING_RESULT
)
||
?
(
context
->
expecting_field_result
(
STRING_RESULT
)
||
context
->
expecting_field_result
(
INT_RESULT
))
context
->
expecting_field_result
(
INT_RESULT
))
:
true
))
&&
:
TRUE
))
&&
// Bit fields no yet supported in scan filter
// Bit fields no yet supported in scan filter
type
!=
MYSQL_TYPE_BIT
&&
type
!=
MYSQL_TYPE_BIT
&&
// No BLOB support in scan filter
// No BLOB support in scan filter
...
@@ -350,7 +350,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
...
@@ -350,7 +350,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
}
}
else
else
{
{
DBUG_PRINT
(
"info"
,
(
"Was not expecting field from table %s(%s)"
,
DBUG_PRINT
(
"info"
,
(
"Was not expecting field from table %s
(%s)"
,
context
->
table
->
s
->
table_name
,
context
->
table
->
s
->
table_name
,
field
->
table
->
s
->
table_name
));
field
->
table
->
s
->
table_name
));
context
->
supported
=
FALSE
;
context
->
supported
=
FALSE
;
...
@@ -770,7 +770,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
...
@@ -770,7 +770,7 @@ void ndb_serialize_cond(const Item *item, void *arg)
DBUG_PRINT
(
"info"
,
(
"REAL_ITEM"
));
DBUG_PRINT
(
"info"
,
(
"REAL_ITEM"
));
if
(
context
->
expecting
(
Item
::
REAL_ITEM
))
if
(
context
->
expecting
(
Item
::
REAL_ITEM
))
{
{
DBUG_PRINT
(
"info"
,
(
"value %f"
,
((
Item_float
*
)
item
)
->
value
));
DBUG_PRINT
(
"info"
,
(
"value %f"
,
((
Item_float
*
)
item
)
->
value
));
NDB_ITEM_QUALIFICATION
q
;
NDB_ITEM_QUALIFICATION
q
;
q
.
value_type
=
Item
::
REAL_ITEM
;
q
.
value_type
=
Item
::
REAL_ITEM
;
curr_cond
->
ndb_item
=
new
Ndb_item
(
NDB_VALUE
,
q
,
item
);
curr_cond
->
ndb_item
=
new
Ndb_item
(
NDB_VALUE
,
q
,
item
);
...
@@ -990,27 +990,28 @@ ha_ndbcluster_cond::build_scan_filter_predicate(Ndb_cond * &cond,
...
@@ -990,27 +990,28 @@ ha_ndbcluster_cond::build_scan_filter_predicate(Ndb_cond * &cond,
break
;
break
;
Ndb_item
*
a
=
cond
->
next
->
ndb_item
;
Ndb_item
*
a
=
cond
->
next
->
ndb_item
;
Ndb_item
*
b
,
*
field
,
*
value
=
NULL
;
Ndb_item
*
b
,
*
field
,
*
value
=
NULL
;
LINT_INIT
(
field
);
switch
(
cond
->
ndb_item
->
argument_count
())
{
switch
(
cond
->
ndb_item
->
argument_count
())
{
case
1
:
case
1
:
field
=
field
=
(
a
->
type
==
NDB_FIELD
)
?
a
:
NULL
;
(
a
->
type
==
NDB_FIELD
)
?
a
:
NULL
;
break
;
break
;
case
2
:
case
2
:
if
(
!
cond
->
next
->
next
)
if
(
!
cond
->
next
->
next
)
{
field
=
NULL
;
break
;
break
;
}
b
=
cond
->
next
->
next
->
ndb_item
;
b
=
cond
->
next
->
next
->
ndb_item
;
value
=
value
=
((
a
->
type
==
NDB_VALUE
)
?
a
:
(
a
->
type
==
NDB_VALUE
)
?
a
(
b
->
type
==
NDB_VALUE
)
?
b
:
:
(
b
->
type
==
NDB_VALUE
)
?
b
NULL
);
:
NULL
;
field
=
((
a
->
type
==
NDB_FIELD
)
?
a
:
field
=
(
b
->
type
==
NDB_FIELD
)
?
b
:
(
a
->
type
==
NDB_FIELD
)
?
a
NULL
);
:
(
b
->
type
==
NDB_FIELD
)
?
b
:
NULL
;
break
;
break
;
default:
default:
field
=
NULL
;
//Keep compiler happy
DBUG_ASSERT
(
0
);
break
;
break
;
}
}
switch
((
negated
)
?
switch
((
negated
)
?
...
...
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