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
e2d1ab84
Commit
e2d1ab84
authored
Nov 12, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IGNORE_INDEX fix for 4.0
parent
59838a57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
mysql-test/r/select.result
mysql-test/r/select.result
+2
-2
sql/sql_base.cc
sql/sql_base.cc
+1
-0
No files found.
mysql-test/r/select.result
View file @
e2d1ab84
...
@@ -1331,10 +1331,10 @@ table type possible_keys key key_len ref rows Extra
...
@@ -1331,10 +1331,10 @@ table type possible_keys key key_len ref rows Extra
t2 ref fld3 fld3 30 const 1 Using where; Using index
t2 ref fld3 fld3 30 const 1 Using where; Using index
explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
explain select fld3 from t2 ignore index (fld3) where fld3 = 'honeysuckle';
table type possible_keys key key_len ref rows Extra
table type possible_keys key key_len ref rows Extra
t2
index NULL fld3 30 NULL 1199 Using where; Using index
t2
ALL NULL NULL NULL NULL 1199 Using where
explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
explain select fld3 from t2 use index (fld1) where fld3 = 'honeysuckle';
table type possible_keys key key_len ref rows Extra
table type possible_keys key key_len ref rows Extra
t2
index NULL fld3 30 NULL 1199 Using where; Using index
t2
ALL NULL NULL NULL NULL 1199 Using where
explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
explain select fld3 from t2 use index (fld3) where fld3 = 'honeysuckle';
table type possible_keys key key_len ref rows Extra
table type possible_keys key key_len ref rows Extra
t2 ref fld3 fld3 30 const 1 Using where; Using index
t2 ref fld3 fld3 30 const 1 Using where; Using index
...
...
sql/sql_base.cc
View file @
e2d1ab84
...
@@ -1850,6 +1850,7 @@ bool setup_tables(TABLE_LIST *tables)
...
@@ -1850,6 +1850,7 @@ bool setup_tables(TABLE_LIST *tables)
for
(
Field
**
ptr
=
table
->
field
;
*
ptr
;
ptr
++
)
for
(
Field
**
ptr
=
table
->
field
;
*
ptr
;
ptr
++
)
(
*
ptr
)
->
query_id
=
0
;
(
*
ptr
)
->
query_id
=
0
;
}
}
table
->
used_keys
&=
table
->
keys_in_use_for_query
;
}
}
if
(
tablenr
>
MAX_TABLES
)
if
(
tablenr
>
MAX_TABLES
)
{
{
...
...
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