You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error occurs where connection.BeginTransaction with sqlite, not mysql.
await using (var connection = _dbConnectionAccessor.CreateConnection())
{
await connection.OpenAsync();
using (var transaction = connection.BeginTransaction(_session.Store.Configuration.IsolationLevel))
{
}
error is:
2022-01-31 14:13:08.5438|Default|00-4764a3943992984f94fc5fecaa329e51-ff068d4e94faf64a-00||OrchardCore.Data.Migration.DataMigrationManager|ERROR|Error while running migration version 5 for 'Tk.Module.Common'. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at SQLitePCL.SQLite3Provider_dynamic_cdecl.SQLitePCL.ISQLite3Provider.sqlite3_prepare_v2(sqlite3 db, ReadOnlySpan`1 sql, IntPtr& stm, ReadOnlySpan`1& tail)
at SQLitePCL.raw.sqlite3_prepare_v2(sqlite3 db, ReadOnlySpan`1 sql, sqlite3_stmt& stmt, ReadOnlySpan`1& tail)
at SQLitePCL.raw.sqlite3_prepare_v2(sqlite3 db, String sql, sqlite3_stmt& stmt, String& tail)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements(Stopwatch timer)+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at Microsoft.Data.Sqlite.SqliteConnectionExtensions.ExecuteNonQuery(SqliteConnection connection, String commandText, SqliteParameter[] parameters)
at Microsoft.Data.Sqlite.SqliteTransaction..ctor(SqliteConnection connection, IsolationLevel isolationLevel, Boolean deferred)
at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel, Boolean deferred)
at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel)
at Microsoft.Data.Sqlite.SqliteConnection.BeginDbTransaction(IsolationLevel isolationLevel)
at System.Data.Common.DbConnection.BeginTransaction(IsolationLevel isolationLevel)
at Tk.Module.Common.Services.Impl.WordService.CreateSource(WordSourceRecord record) in C:\Users\i\source\repos\inbornking.net\4.code\2.reading\Tk.Module.Common\Services\Impl\WordService.cs:line 334
at Tk.Module.Common.Services.Impl.WordService.CreateSource(WordSourceRecord record) in C:\Users\i\source\repos\inbornking.net\4.code\2.reading\Tk.Module.Common\Services\Impl\WordService.cs:line 359
at Tk.Module.Common.Migration.UpdateFrom5() in C:\Users\i\source\repos\inbornking.net\4.code\2.reading\Tk.Module.Common\Migrations.cs:line 265
at OrchardCore.Data.Migration.DataMigrationManager.UpdateAsync(String featureId) at SQLitePCL.SQLite3Provider_dynamic_cdecl.SQLitePCL.ISQLite3Provider.sqlite3_prepare_v2(sqlite3 db, ReadOnlySpan`1 sql, IntPtr& stm, ReadOnlySpan`1& tail)
at SQLitePCL.raw.sqlite3_prepare_v2(sqlite3 db, ReadOnlySpan`1 sql, sqlite3_stmt& stmt, ReadOnlySpan`1& tail)
at SQLitePCL.raw.sqlite3_prepare_v2(sqlite3 db, String sql, sqlite3_stmt& stmt, String& tail)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements(Stopwatch timer)+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at Microsoft.Data.Sqlite.SqliteConnectionExtensions.ExecuteNonQuery(SqliteConnection connection, String commandText, SqliteParameter[] parameters)
at Microsoft.Data.Sqlite.SqliteTransaction..ctor(SqliteConnection connection, IsolationLevel isolationLevel, Boolean deferred)
at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel, Boolean deferred)
at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel)
at Microsoft.Data.Sqlite.SqliteConnection.BeginDbTransaction(IsolationLevel isolationLevel)
at System.Data.Common.DbConnection.BeginTransaction(IsolationLevel isolationLevel)
at Tk.Module.Common.Services.Impl.WordService.CreateSource(WordSourceRecord record) in C:\Users\i\source\repos\inbornking.net\4.code\2.reading\Tk.Module.Common\Services\Impl\WordService.cs:line 334
at Tk.Module.Common.Services.Impl.WordService.CreateSource(WordSourceRecord record) in C:\Users\i\source\repos\inbornking.net\4.code\2.reading\Tk.Module.Common\Services\Impl\WordService.cs:line 359
at Tk.Module.Common.Migration.UpdateFrom5() in C:\Users\i\source\repos\inbornking.net\4.code\2.reading\Tk.Module.Common\Migrations.cs:line 265
at OrchardCore.Data.Migration.DataMigrationManager.UpdateAsync(String featureId)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
error occurs where
connection.BeginTransaction
with sqlite, not mysql.error is:
Beta Was this translation helpful? Give feedback.
All reactions