mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Classify all try! and fatalError into TODO, Programmer Error, or GRDB bug that needs to be fixed.
This commit is contained in:
1 parent
fc1fdab51a
commit
6bcab179d1
25 files changed
+123
-88
No files matched your search
@@ -130,14 +130,17 @@ struct QueryInterfaceSelectQueryDefinition {
|
||||
|
||||
func makeDeleteStatement(_ db: Database) throws -> UpdateStatement {
|
||||
guard groupByExpressions.isEmpty else {
|
||||
// Programmer error
|
||||
fatalError("Can't delete query with GROUP BY expression")
|
||||
}
|
||||
|
||||
guard havingExpression == nil else {
|
||||
// Programmer error
|
||||
fatalError("Can't delete query with GROUP BY expression")
|
||||
}
|
||||
|
||||
guard limit == nil else {
|
||||
// Programmer error
|
||||
fatalError("Can't delete query with limit")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user