internal override void Bind_Text(SQLiteStatement stmt, int index, string value) { int errorCode = UnsafeNativeMethods.sqlite3_bind_text16((IntPtr)stmt._sqlite_stmt, index, value, value.Length * 2, (IntPtr)(-1)); if (errorCode > 0) { throw new SQLiteException(errorCode, this.SQLiteLastError()); } }
internal override void Bind_Text(SQLiteStatement stmt, SQLiteConnectionFlags flags, int index, string value) { SQLiteStatementHandle handle = stmt._sqlite_stmt; #if !PLATFORM_COMPACTFRAMEWORK if ((flags & SQLiteConnectionFlags.LogBind) == SQLiteConnectionFlags.LogBind) { LogBind(handle, index, value); } #endif SQLiteErrorCode n = UnsafeNativeMethods.sqlite3_bind_text16(handle, index, value, value.Length * 2, (IntPtr)(-1)); if (n != SQLiteErrorCode.Ok) { throw new SQLiteException(n, GetLastError()); } }