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);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlFnCode
impl RefUnwindSafe for SqlFnCode
impl Send for SqlFnCode
impl Sync for SqlFnCode
impl Unpin for SqlFnCode
impl UnwindSafe for SqlFnCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more