コード例 #1
0
ファイル: SQLite3.cs プロジェクト: bdcliang/BD
        internal override void SetTimeout(int nTimeoutMS)
        {
            int errorCode = UnsafeNativeMethods.sqlite3_busy_timeout((IntPtr)this._sql, nTimeoutMS);

            if (errorCode > 0)
            {
                throw new SQLiteException(errorCode, this.SQLiteLastError());
            }
        }
コード例 #2
0
ファイル: SQLite3.cs プロジェクト: kanta-mir/SQLite-Source
        internal override void SetTimeout(int nTimeoutMS)
        {
            int n = UnsafeNativeMethods.sqlite3_busy_timeout(_sql, nTimeoutMS);

            if (n > 0)
            {
                throw new SQLiteException(n, SQLiteLastError());
            }
        }