Merge tracking branch 'connect/10.1' into 10.1

This commit is contained in:
Sergei Golubchik 2016-02-23 22:16:35 +01:00
commit 88576b3a80

View File

@ -912,8 +912,7 @@ 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;
if ((Qrp = Ocp->AllocateResult(g)))
@ -923,6 +922,9 @@ bool TDBODBC::OpenDB(PGLOBAL g)
return true;
} // endif n
} else // Void result
Memory = 0;
Ocp->m_Rows = 0;
} else
return true;