Hi,
I have recorded ODBC script and modified the required changes for handling dynamic value (correlation). This has been done using lrd_save_col(cursor, col, row, optional, variable) and paramterisation is done to pass the runtime server date in the database table.
However, replaying the script after modification generate the error message in the output. Has anybody seen this issue and know the resolution.
vuser_init.c(6931): lrdb_db_option: "SQLCloseCursor", return-code=-1, native-error-code=0, SQLState=24000, SQLError=[Microsoft][ODBC Driver 11 for SQL Server]Invalid cursor state
========================================================================================
Sample script captured from the baseline version. Error is generated on lrd_db_option(Csr875, OT_ODBC_CURSOR_CLOSE_30, 0, 1)
lrd_open_cursor(&Csr875, Con3, 0);
lrd_stmt(Csr875, "UPDATE vec_user SET LOGONTIME = ? WHERE (ID = ?)", -1, 0 /*Parse only*/, 0 /*None*/, 0);
lrd_assign(&_1_D3766, "16:25:51", 0, 0, 0); //16:25:51 {p_timeFormat}
lrd_bind_placeholder(Csr875, "1", &_1_D3766,
LRD_BIND_FOR_INPUT_ONLY, 0);
lrd_assign(&_2_D3767, "{ID}", 0, 0, 0);
lrd_bind_placeholder(Csr875, "2", &_2_D3767,
LRD_BIND_FOR_INPUT_ONLY, 0);
lrd_exec(Csr875, 0, 0, 0, 0, 0);
lrd_db_option(Csr875, OT_ODBC_CURSOR_CLOSE_30, 0, 1);
lrd_db_option(Csr875, OT_ODBC_CURSOR_UNBOUNDCOLS, 0, 0);
lrd_db_option(Csr875, OT_ODBC_CURSOR_RESETPARAMS, 0, 0);
lrd_close_cursor(&Csr875, 0);