Example: lrd_result_set_ext

In the following example, the lrd_result_set_ext function prepares the result set retrieved by the query.

lrd_open_cursor(&Csr11, Con1, 0);
lrd_stmt(Csr11, "SELECT id, last_name, city, state FROM contact WHERE " "state = 'CA'", -1, 700, 2, 0);
lrd_exec(Csr11, 0, 0, 0, 0, 0);
lrd_result_set_ext(Csr11, 1 /*Succeed*/, 4046 /*Done*/, 1, 4046, 0);
lrd_result_set_ext(Csr11, 1 /*Succeed*/, 4041 /*Cursor*/, 1, 4046, 0);
lrd_bind_col(Csr11, 1, &id_D7, 0, 0);
lrd_bind_col(Csr11, 2, &last_name_D8, 0, 0);
lrd_bind_col(Csr11, 3, &city_D9, 0, 0);
lrd_bind_col(Csr11, 4, &state_D10, 0, 0);
lrd_fetch(Csr11, -5, 0, 0, PrintRow8, 0);