Index: System.Data.SQLite/SQLiteModuleBase.cs ================================================================== --- System.Data.SQLite/SQLiteModuleBase.cs +++ System.Data.SQLite/SQLiteModuleBase.cs @@ -2305,10 +2305,21 @@ protected virtual bool SetTableError( IntPtr pVtab, string error ) { + try + { + SQLiteLog.LogMessage(SQLiteErrorCode.Error, + String.Format(CultureInfo.CurrentCulture, + "Virtual table error: {0}", error)); /* throw */ + } + catch + { + // do nothing. + } + if (pVtab == IntPtr.Zero) return false; int offset = IntPtr.Size + sizeof(int); IntPtr pError = SQLiteMarshal.ReadIntPtr(pVtab, offset);