pub struct SqlFnCode;
Expand description
A type parameter for Statement::oci_attr
to get OCI_ATTR_SQLFNCODE
,
which is the function code of the SQL command associated with the statement.
Note that the attribute must be read after the statement is executed.
Examples
use oracle::oci_attr::SqlFnCode;
let stmt = conn.execute("insert into TestNumbers values(11, 12, 13, 14, 15)", &[])?;
assert_eq!(stmt.oci_attr::<SqlFnCode>()?, 3);
let stmt = conn.execute("update TestNumbers set NumberCol = 13 where IntCol = 11", &[])?;
assert_eq!(stmt.oci_attr::<SqlFnCode>()?, 5);
let stmt = conn.execute("delete TestNumbers where IntCol = 11", &[])?;
assert_eq!(stmt.oci_attr::<SqlFnCode>()?, 9);