Exemple #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;
                }
            }
        }
Exemple #2
0
        internal void DisposeKeyInfoStatementHandle()
        {
            OdbcStatementHandle handle = this._keyinfostmt;

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

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

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

            OdbcStatementHandle handle = _stmt;

            if (null != handle)
            {
                _stmt = null;
                handle.Dispose();
            }
        }
Exemple #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;
                }
            }
        }
Exemple #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;
                }
            }
        }
Exemple #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;
                }
            }
        }