Пример #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;
                }
            }
        }
Пример #2
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;
                }
            }
        }
Пример #3
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;
                }
            }
        }
Пример #4
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;
                }
            }
        }
Пример #5
0
 internal static extern /*SQLRETURN*/ ODBC32.RetCode SQLFreeStmt(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ODBC32.STMT Option);
Пример #6
0
 internal ODBC32.RetCode FreeStatement(ODBC32.STMT stmt)
 {
     ODBC32.RetCode retcode = Interop.Odbc.SQLFreeStmt(this, stmt);
     ODBC.TraceODBC(3, "SQLFreeStmt", retcode);
     return(retcode);
 }
Пример #7
0
 internal ODBC32.RetCode FreeStatement(ODBC32.STMT stmt)
 {
     ODBC32.RetCode retcode = UnsafeNativeMethods.SQLFreeStmt(this, stmt);
     ODBC.TraceODBC(3, "SQLFreeStmt", retcode);
     return(retcode);
 }
Пример #8
0
 internal static partial ODBC32.SQLRETURN SQLFreeStmt(
     /*SQLHSTMT*/ OdbcStatementHandle StatementHandle,
     /*SQLUSMALLINT*/ ODBC32.STMT Option);
 internal static extern ODBC32.RetCode SQLFreeStmt(OdbcStatementHandle StatementHandle, ODBC32.STMT Option);