Permalink
Browse files

Remove too strict test.

Does not work using MARS. TDSSOCKET get reused so IRD is not always in
sync.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information...
1 parent a9d70ab commit e02574d1b4f5105b45e93a4c85b93be49275c5cb @freddy77 freddy77 committed Feb 16, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/odbc/odbc.c
View
@@ -2949,6 +2949,7 @@ SQLCopyDesc(SQLHDESC hsrc, SQLHDESC hdesc)
static void
odbc_ird_check(TDS_STMT * stmt)
{
+#if !ENABLE_ODBC_MARS
TDS_DESC *ird = stmt->ird;
TDSRESULTINFO *res_info = NULL;
int cols = 0, i;
@@ -2974,6 +2975,7 @@ odbc_ird_check(TDS_STMT * stmt)
assert(tds_dstr_len(&drec->sql_desc_label) == col->column_namelen);
assert(memcmp(tds_dstr_cstr(&drec->sql_desc_label), col->column_name, col->column_namelen) == 0);
}
+#endif
}
#endif

0 comments on commit e02574d

Please sign in to comment.