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
cc62018f
Commit
cc62018f
authored
Aug 01, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/local/home/marty/MySQL/mysql-5.0-release
into mysql.com:/usr/local/home/marty/MySQL/mysql-5.0
parents
0f0fb8a0
d969a9ab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
mysql-test/r/ndb_condition_pushdown.result
mysql-test/r/ndb_condition_pushdown.result
+1
-1
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+1
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+6
-4
No files found.
mysql-test/r/ndb_condition_pushdown.result
View file @
cc62018f
...
@@ -1514,7 +1514,7 @@ select auto from t1 where
...
@@ -1514,7 +1514,7 @@ select auto from t1 where
'1901-01-01 01:01:01' in(date_time)
'1901-01-01 01:01:01' in(date_time)
order by auto;
order by auto;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
ALL NULL NULL NULL NULL 4
Using where with pushed condition; Using filesort
1 SIMPLE t1
ref medium_index medium_index 3 const 10
Using where with pushed condition; Using filesort
select auto from t1 where
select auto from t1 where
"aaaa" in(string) and
"aaaa" in(string) and
"aaaa" in(vstring) and
"aaaa" in(vstring) and
...
...
mysql-test/t/disabled.def
View file @
cc62018f
...
@@ -11,4 +11,4 @@
...
@@ -11,4 +11,4 @@
##############################################################################
##############################################################################
sp-goto:GOTO is currently is disabled - will be fixed in the future
sp-goto:GOTO is currently is disabled - will be fixed in the future
ndb_condition_pushdown:Bug #12021
sql/ha_ndbcluster.cc
View file @
cc62018f
...
@@ -6353,12 +6353,14 @@ void ndb_serialize_cond(const Item *item, void *arg)
...
@@ -6353,12 +6353,14 @@ void ndb_serialize_cond(const Item *item, void *arg)
// result type
// result type
if
(
context
->
expecting
(
Item
::
FIELD_ITEM
)
&&
if
(
context
->
expecting
(
Item
::
FIELD_ITEM
)
&&
(
context
->
expecting_field_result
(
field
->
result_type
())
||
(
context
->
expecting_field_result
(
field
->
result_type
())
||
// Date and year can be written as string
s
// Date and year can be written as string
or int
((
type
==
MYSQL_TYPE_TIME
||
((
type
==
MYSQL_TYPE_TIME
||
type
==
MYSQL_TYPE_DATE
||
type
==
MYSQL_TYPE_DATE
||
type
==
MYSQL_TYPE_YEAR
||
type
==
MYSQL_TYPE_YEAR
||
type
==
MYSQL_TYPE_DATETIME
)
type
==
MYSQL_TYPE_DATETIME
)
?
context
->
expecting_field_result
(
STRING_RESULT
)
:
true
))
&&
?
(
context
->
expecting_field_result
(
STRING_RESULT
)
||
context
->
expecting_field_result
(
INT_RESULT
))
:
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
)
{
{
...
@@ -6426,8 +6428,8 @@ void ndb_serialize_cond(const Item *item, void *arg)
...
@@ -6426,8 +6428,8 @@ void ndb_serialize_cond(const Item *item, void *arg)
}
}
else
else
{
{
DBUG_PRINT
(
"info"
,
(
"Was not expecting field of type %u"
,
DBUG_PRINT
(
"info"
,
(
"Was not expecting field of type %u
(%u)
"
,
field
->
result_type
()));
field
->
result_type
()
,
type
));
context
->
supported
=
FALSE
;
context
->
supported
=
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