Example: lrd_assign_bind_literal

In the following example, lrd_assign_bind_literal assigns the value 70\0\0 to the placeholder newemp. It then binds the host variable newemp_D4 to the placeholder.

lrd_stmt(Csr1, "insert into employee values ('Joe Taylor',:newemp," "'1-JAN-97','R&D',22)", -1, 0 /*Non deferred*/, 2 /*Ora V7*/, 0);
lrd_assign_bind_literal(Csr1, "newemp", "70\x00\x00", &newemp_D4, 0, 0, 0);
lrd_exec(Csr1, 0, 0, 0, 0, 0);