projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba3cb84
)
Fix a compilation error with vc10.
author
Hiroshi Inoue
<
[email protected]
>
Sat, 7 Nov 2020 12:43:41 +0000
(21:43 +0900)
committer
Hiroshi Inoue
<
[email protected]
>
Sat, 7 Nov 2020 12:43:41 +0000
(21:43 +0900)
statement.c
patch
|
blob
|
blame
|
history
diff --git
a/statement.c
b/statement.c
index 07e4ff888875e2ec5e3f6ee75e8d054b51f76606..24dee4c97f3d9bd3c5aa06c32b3cd737a2a2144f 100644
(file)
--- a/
statement.c
+++ b/
statement.c
@@
-1292,8
+1292,6
@@
static PG_ErrorInfo *
SC_create_errorinfo(const StatementClass *self, PG_ErrorInfo *pgerror_fail_safe)
{
QResultClass *res = SC_get_Curres(self);
- if (!res)
- res = SC_get_Parsed(self);
ConnectionClass *conn = SC_get_conn(self);
Int4 errornum;
size_t pos;
@@
-1303,6
+1301,8
@@
SC_create_errorinfo(const StatementClass *self, PG_ErrorInfo *pgerror_fail_safe)
char *ermsg = NULL, *sqlstate = NULL;
PG_ErrorInfo *pgerror;
+ if (!res)
+ res = SC_get_Parsed(self);
if (self->pgerror)
return self->pgerror;
errornum = self->__error_number;