sqlite3_bind_int64() private method

private sqlite3_bind_int64 ( IntPtr stmt, int index, long value ) : int
stmt System.IntPtr
index int
value long
return int
Example #1
0
        internal override void Bind_Int64(SqliteStatement stmt, int index, long value)
        {
            int n = UnsafeNativeMethods.sqlite3_bind_int64(stmt._sqlite_stmt, index, value);

            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
        }
Example #2
0
        internal override void Bind_Int64(SqliteStatement stmt, int index, long value)
        {
#if !PLATFORM_COMPACTFRAMEWORK
            int n = UnsafeNativeMethods.sqlite3_bind_int64(stmt._sqlite_stmt, index, value);
#else
            int n = UnsafeNativeMethods.sqlite3_bind_int64_interop(stmt._sqlite_stmt, index, ref value);
#endif
            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
        }