public OciParameterDescriptor GetParameter(int position) { IntPtr handle = IntPtr.Zero; int status = 0; status = OciCalls.OCIParamGet(this, OciHandleType.Statement, ErrorHandle, out handle, position + 1); if (status != 0) { OciErrorInfo info = ErrorHandle.HandleError(); throw new OracleException(info.ErrorCode, info.ErrorMessage); } OciParameterDescriptor output = new OciParameterDescriptor(this, handle); output.ErrorHandle = ErrorHandle; if (parm == null) { parm = new ArrayList(); } parm.Add(handle); return(output); }
internal void DefineByPosition(int position, OracleConnection connection) { OciParameterDescriptor parameter = ((OciStatementHandle)Parent).GetParameter(position); //name = parameter.GetName (); definedType = parameter.GetDataType(); definedSize = parameter.GetDataSize(); //precision = parameter.GetPrecision (); scale = parameter.GetScale(); Define(position, connection); parameter.Dispose(); }
internal void DefineByPosition(int position, OracleConnection connection) { OciParameterDescriptor parameter = ((OciStatementHandle)Parent).GetParameter(position); name = parameter.GetName(); definedType = parameter.GetDataType(); definedSize = parameter.GetDataSize(); //precision = parameter.GetPrecision (); scale = parameter.GetScale(); rlenp = OciCalls.AllocateClear(sizeof(short)); indicator = OciCalls.AllocateClear(sizeof(short)); Define(position, connection); parameter.Dispose(); }
public OciParameterDescriptor GetParameter (int position) { IntPtr handle = IntPtr.Zero; int status = 0; status = OciCalls.OCIParamGet (this, OciHandleType.Statement, ErrorHandle, out handle, position + 1); if (status != 0) { OciErrorInfo info = ErrorHandle.HandleError (); throw new OracleException (info.ErrorCode, info.ErrorMessage); } OciParameterDescriptor output = new OciParameterDescriptor (this, handle); output.ErrorHandle = ErrorHandle; if (parm == null) parm = new ArrayList(); parm.Add(handle); return output; }