internal static int OCIStmtPrepare(OciHandle stmtp, OciHandle errhp, string stmt, OCI.SYNTAX language, OCI.MODE mode, OracleConnection connection) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtPrepare|ADV|OCI> stmtp=0x%-07Ix errhp=0x%-07Ix stmt_len=%d language=%d{OCI.SYNTAX} mode=0x%x{OCI.MODE}\n\t\t%ls\n\n", stmtp, errhp, stmt.Length, (int)language, (int)mode, stmt); } byte[] bytes = connection.GetBytes(stmt, false); uint length = (uint)bytes.Length; int num = System.Data.Common.UnsafeNativeMethods.OCIStmtPrepare(stmtp, errhp, bytes, length, language, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtPrepare|ADV|OCI|RET> rc=%d\n", num); } return(num); }
internal static int OCIStmtPrepare(OciHandle stmtp, OciHandle errhp, string stmt, OCI.SYNTAX language, OCI.MODE mode, OracleConnection connection) { if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtPrepare|ADV|OCI> stmtp=0x%-07Ix errhp=0x%-07Ix stmt_len=%d language=%d{OCI.SYNTAX} mode=0x%x{OCI.MODE}\n\t\t%ls\n\n", stmtp, errhp, stmt.Length, (int) language, (int) mode, stmt); } byte[] bytes = connection.GetBytes(stmt, false); uint length = (uint) bytes.Length; int num = System.Data.Common.UnsafeNativeMethods.OCIStmtPrepare(stmtp, errhp, bytes, length, language, mode); if (Bid.AdvancedOn) { Bid.Trace("<oc.OCIStmtPrepare|ADV|OCI|RET> rc=%d\n", num); } return num; }