Skip to content

Commit

Permalink
Merge tracking branch 'connect/10.1' into 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Feb 23, 2016
2 parents a5679af + 69042ff commit 88576b3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions storage/connect/tabodbc.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 88576b3

Please sign in to comment.