Exemplo n.º 1
0
        internal void FreeStatementHandle(ODBC32.STMT stmt)
        {
            DisposeDescriptorHandle();

            OdbcStatementHandle handle = _stmt;

            if (null != handle)
            {
                try
                {
                    ODBC32.RetCode retcode;
                    retcode = handle.FreeStatement(stmt);
                    StatementErrorHandler(retcode);
                }
                catch (Exception e)
                {
                    //
                    if (ADP.IsCatchableExceptionType(e))
                    {
                        _stmt = null;
                        handle.Dispose();
                    }

                    throw;
                }
            }
        }
Exemplo n.º 2
0
        internal void DisposeKeyInfoStatementHandle()
        {
            OdbcStatementHandle handle = this._keyinfostmt;

            if (handle != null)
            {
                this._keyinfostmt = null;
                handle.Dispose();
            }
        }
Exemplo n.º 3
0
        internal void DisposeKeyInfoStatementHandle()
        {
            OdbcStatementHandle handle = _keyinfostmt;

            if (null != handle)
            {
                _keyinfostmt = null;
                handle.Dispose();
            }
        }
Exemplo n.º 4
0
        internal void DisposeStatementHandle()
        {
            this.DisposeKeyInfoStatementHandle();
            this.DisposeDescriptorHandle();
            OdbcStatementHandle handle = this._stmt;

            if (handle != null)
            {
                this._stmt = null;
                handle.Dispose();
            }
        }
Exemplo n.º 5
0
        internal void DisposeStatementHandle()
        {
            DisposeKeyInfoStatementHandle();
            DisposeDescriptorHandle();

            OdbcStatementHandle handle = _stmt;

            if (null != handle)
            {
                _stmt = null;
                handle.Dispose();
            }
        }
Exemplo n.º 6
0
        internal void FreeKeyInfoStatementHandle(ODBC32.STMT stmt)
        {
            OdbcStatementHandle handle = _keyinfostmt;

            if (null != handle)
            {
                try {
                    handle.FreeStatement(stmt);
                }
                catch (Exception e) {
                    //
                    if (ADP.IsCatchableExceptionType(e))
                    {
                        _keyinfostmt = null;
                        handle.Dispose();
                    }

                    throw;
                }
            }
        }
Exemplo n.º 7
0
        internal void FreeKeyInfoStatementHandle(ODBC32.STMT stmt)
        {
            OdbcStatementHandle handle = this._keyinfostmt;

            if (handle != null)
            {
                try
                {
                    handle.FreeStatement(stmt);
                }
                catch (Exception exception)
                {
                    if (ADP.IsCatchableExceptionType(exception))
                    {
                        this._keyinfostmt = null;
                        handle.Dispose();
                    }
                    throw;
                }
            }
        }
Exemplo n.º 8
0
        internal void FreeStatementHandle(ODBC32.STMT stmt)
        {
            this.DisposeDescriptorHandle();
            OdbcStatementHandle handle = this._stmt;

            if (handle != null)
            {
                try
                {
                    ODBC32.RetCode retcode = handle.FreeStatement(stmt);
                    this.StatementErrorHandler(retcode);
                }
                catch (Exception exception)
                {
                    if (ADP.IsCatchableExceptionType(exception))
                    {
                        this._stmt = null;
                        handle.Dispose();
                    }
                    throw;
                }
            }
        }