Index: lib/System.Data.SQLite/common.eagle ================================================================== --- lib/System.Data.SQLite/common.eagle +++ lib/System.Data.SQLite/common.eagle @@ -2133,15 +2133,23 @@ [sql execute -execute scalar $db $sql [list param1 String $name]] > 0 }] } proc getDbDefaultPageSize {} { - return [executeSql "PRAGMA page_size;" scalar] + if {[catch {executeSql "PRAGMA page_size;" scalar} result] == 0} then { + return $result + } else { + return 0 + } } proc getDbDefaultCacheSize {} { - return [executeSql "PRAGMA cache_size;" scalar] + if {[catch {executeSql "PRAGMA cache_size;" scalar} result] == 0} then { + return $result + } else { + return 0 + } } proc useLegacyDbPageAndCacheSizes { varName } { # # NOTE: Refer to the specified variable (e.g. "db") in the context of our