diff --git a/src/ProjectFileIO.cpp b/src/ProjectFileIO.cpp index 3b3e2e1fd..4397e83aa 100644 --- a/src/ProjectFileIO.cpp +++ b/src/ProjectFileIO.cpp @@ -879,7 +879,7 @@ bool ProjectFileIO::CopyTo(const FilePath &destpath, // // NOTE: Between the above attach and setting the mode here, a normal DELETE // mode journal will be used and will briefly appear in the filesystem. - if (!pConn->FastMode("outbound")) + if ( pConn->FastMode("outbound") != SQLITE_OK) { SetDBError( XO("Unable to switch to fast journaling mode")