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
69042ffe
Commit
69042ffe
authored
Feb 20, 2016
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix to MDEV-9579 be testing for void result.
modified: storage/connect/tabodbc.cpp
parent
d163ad33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
storage/connect/tabodbc.cpp
storage/connect/tabodbc.cpp
+12
-10
No files found.
storage/connect/tabodbc.cpp
View file @
69042ffe
...
...
@@ -912,19 +912,21 @@ bool TDBODBC::OpenDB(PGLOBAL g)
if
((
n
=
Ocp
->
GetResultSize
(
Query
->
GetStr
(),
Cnp
))
<
0
)
{
strcpy
(
g
->
Message
,
"Cannot get result size"
);
return
true
;
}
// endif n
}
else
if
(
n
)
{
Ocp
->
m_Rows
=
n
;
Ocp
->
m_Rows
=
n
;
if
((
Qrp
=
Ocp
->
AllocateResult
(
g
)))
Memory
=
2
;
// Must be filled
else
{
strcpy
(
g
->
Message
,
"Result set memory allocation failed"
);
return
true
;
}
// endif n
if
((
Qrp
=
Ocp
->
AllocateResult
(
g
)))
Memory
=
2
;
// Must be filled
else
{
strcpy
(
g
->
Message
,
"Result set memory allocation failed"
);
return
true
;
}
// endif n
}
else
// Void result
Memory
=
0
;
Ocp
->
m_Rows
=
0
;
}
else
Ocp
->
m_Rows
=
0
;
}
else
return
true
;
}
// endif Memory
...
...
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