Permalink
Browse files

Fix prepare_warn test

Ignore messages during cursor creation. Messages will be captured by
callback anyway. This however make sure that is cursor is created on
server side client side is aligned and can use cursor.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
  • Loading branch information...
1 parent c2c2f76 commit e30a9f1f89d2b65982391797fd9c56e2b9e8c6df @freddy77 freddy77 committed Feb 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/odbc/odbc.c
View
@@ -3232,7 +3232,7 @@ odbc_cursor_execute(TDS_STMT * stmt)
tds_set_state(tds, TDS_PENDING);
/* set cursor name for TDS7+ */
if (TDS_SUCCEED(ret) && IS_TDS7_PLUS(tds->conn) && !tds_dstr_isempty(&stmt->cursor_name)) {
- ret = odbc_process_tokens(stmt, TDS_RETURN_MSG|TDS_RETURN_DONE|TDS_STOPAT_ROW|TDS_STOPAT_COMPUTE);
+ ret = odbc_process_tokens(stmt, TDS_RETURN_DONE|TDS_STOPAT_ROW|TDS_STOPAT_COMPUTE);
stmt->row_count = tds->rows_affected;
if (ret == TDS_CMD_DONE && cursor->cursor_id != 0) {
ret = tds_cursor_setname(tds, cursor);

0 comments on commit e30a9f1

Please sign in to comment.