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
61141013
Commit
61141013
authored
Jul 07, 2015
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression bug on "select max(length(nom)) from emp1" when:
The emp1 table type is MYSQL nom is an indexed column
parent
f0735934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
storage/connect/tabmysql.cpp
storage/connect/tabmysql.cpp
+5
-5
No files found.
storage/connect/tabmysql.cpp
View file @
61141013
...
...
@@ -1058,12 +1058,13 @@ bool TDBMYSQL::ReadKey(PGLOBAL g, OPVAL op, const void *key, int len)
{
bool
oom
;
int
oldlen
=
Query
->
GetLength
();
PHC
hc
=
To_Def
->
GetHandler
();
if
(
op
==
OP_FIRST
)
{
if
(
op
==
OP_FIRST
&&
hc
->
end_range
)
{
#ifdef _DEBUG
assert
(
!
key
);
#endif
key_range
*
end_key
=
&
To_Def
->
GetHandler
()
->
save_end_range
;
key_range
*
end_key
=
&
hc
->
save_end_range
;
key
=
end_key
->
key
;
len
=
end_key
->
length
;
...
...
@@ -1078,21 +1079,20 @@ bool TDBMYSQL::ReadKey(PGLOBAL g, OPVAL op, const void *key, int len)
if
(
!
key
||
op
==
OP_NEXT
||
Mode
==
MODE_UPDATE
||
Mode
==
MODE_DELETE
)
{
#if 0
if
(
!
key
&&
Mode
==
MODE_READX
)
{
// This is a false indexed read
m_Rc
=
Myc
.
ExecSQL
(
g
,
Query
->
GetStr
());
Mode
=
MODE_READ
;
return
(
m_Rc
==
RC_FX
)
?
true
:
false
;
}
// endif key
#endif // 0
return
false
;
}
else
{
if
(
Myc
.
m_Res
)
Myc
.
FreeResult
();
To_Def
->
GetHandler
()
->
MakeKeyWhere
(
g
,
Query
,
op
,
'`'
,
key
,
len
);
if
(
hc
->
MakeKeyWhere
(
g
,
Query
,
op
,
'`'
,
key
,
len
))
return
true
;
if
(
To_CondFil
)
{
oom
=
Query
->
Append
(
" AND ("
);
...
...
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