Example: lrd_ora8_attr_set

In the following example, the lrd_attr_set function assigns the value "scott" to the USERNAME attribute during session 1.

lrd_ora8_handle_alloc(OraEnv1, STMT, &OraStm3, 0);
lrd_ora8_stmt(OraStm3, "select * from dual\n", 1, 0, 0);
lrd_ora8_exec(OraSvc1, OraStm3, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);
lrd_ora8_bind_col(OraStm3, &OraDef2, 1, &DUMMY_D17, 0, 0);
lrd_ora8_attr_set(OraDef2, CHARSET_FORM, "1", -1, 0);
lrd_ora8_fetch(OraStm3, -1, 15, &uliFetchedRows, PrintRow6, 2, 0, 0);
GRID8(6);
lrd_handle_free(&OraStm3, 0);
lrd_session_end(OraSvc1, OraSes1, 0, 0);
lrd_server_detach(OraSrv1, 0, 0);
lrd_handle_free(&OraEnv1, 0);