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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
073b0e77
Commit
073b0e77
authored
Mar 02, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- MySQL connection was not closed in case of error
modified: storage/connect/myconn.cpp
parent
63798ef4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
storage/connect/myconn.cpp
storage/connect/myconn.cpp
+5
-2
No files found.
storage/connect/myconn.cpp
View file @
073b0e77
...
...
@@ -148,9 +148,10 @@ PQRYRES MyColumns(PGLOBAL g, const char *host, const char *db,
/* Now get the results into blocks. */
/**********************************************************************/
for
(
i
=
0
;
i
<
n
;
i
++
)
{
if
((
rc
=
myc
.
Fetch
(
g
,
-
1
)
==
RC_FX
))
if
((
rc
=
myc
.
Fetch
(
g
,
-
1
)
==
RC_FX
))
{
myc
.
Close
();
return
NULL
;
else
if
(
rc
==
RC_NF
)
}
else
if
(
rc
==
RC_NF
)
break
;
// Get column name
...
...
@@ -165,12 +166,14 @@ PQRYRES MyColumns(PGLOBAL g, const char *host, const char *db,
if
((
nf
=
sscanf
(
fld
,
"%[^(](%d,%d"
,
cmd
,
&
len
,
&
prec
))
<
1
)
{
sprintf
(
g
->
Message
,
MSG
(
BAD_FIELD_TYPE
),
fld
);
myc
.
Close
();
return
NULL
;
}
else
qrp
->
Nblin
++
;
if
((
type
=
MYSQLtoPLG
(
cmd
))
==
TYPE_ERROR
)
{
sprintf
(
g
->
Message
,
"Unsupported column type %s"
,
cmd
);
myc
.
Close
();
return
NULL
;
}
// endif type
...
...
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