sqlite3_bind_text16() private method

private sqlite3_bind_text16 ( IntPtr stmt, int index, string value, int nlen, int nTransient ) : int
stmt System.IntPtr
index int
value string
nlen int
nTransient int
return int
コード例 #1
0
        internal override void Bind_Text(SqliteStatement stmt, int index, string value)
        {
            int n = UnsafeNativeMethods.sqlite3_bind_text16(stmt._sqlite_stmt, index, value, value.Length * 2, (IntPtr)(-1));

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