diff options
Diffstat (limited to 'storage/connect/table.cpp')
-rw-r--r-- | storage/connect/table.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/table.cpp b/storage/connect/table.cpp index 84eb40144cc..3768109809e 100644 --- a/storage/connect/table.cpp +++ b/storage/connect/table.cpp @@ -530,7 +530,7 @@ bool TDBCAT::InitCol(PGLOBAL g) for (colp = (PCATCOL)Columns; colp; colp = (PCATCOL)colp->GetNext()) { for (crp = Qrp->Colresp; crp; crp = crp->Next) - if ((colp->Flag == crp->Ncol) || + if ((colp->Flag && colp->Flag == crp->Fld) || (!colp->Flag && !stricmp(colp->Name, crp->Name))) { colp->Crp = crp; break; |