コード例 #1
0
ファイル: SQLite3.cs プロジェクト: bdcliang/BD
        internal override void Bind_Int32(SQLiteStatement stmt, int index, int value)
        {
            int errorCode = UnsafeNativeMethods.sqlite3_bind_int((IntPtr)stmt._sqlite_stmt, index, value);

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

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