sqlite3_bind_double() private method

private sqlite3_bind_double ( IntPtr stmt, int index, double value ) : int
stmt System.IntPtr
index int
value double
return int
        internal override void Bind_Double(SqliteStatement stmt, int index, double value)
        {
            int n = UnsafeNativeMethods.sqlite3_bind_double(stmt._sqlite_stmt, index, value);

            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
        }
Beispiel #2
0
        internal override void Bind_Double(SqliteStatement stmt, int index, double value)
        {
#if !PLATFORM_COMPACTFRAMEWORK
            int n = UnsafeNativeMethods.sqlite3_bind_double(stmt._sqlite_stmt, index, value);
#else
            int n = UnsafeNativeMethods.sqlite3_bind_double_interop(stmt._sqlite_stmt, index, ref value);
#endif
            if (n > 0)
            {
                throw new SqliteException(n, SQLiteLastError());
            }
        }