mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Prevent StatementArguments.Default from being used as actual arguments
This commit is contained in:
1 parent
1e3d9f16df
commit
02f852cb89
2 files changed
+3
-1
No files matched your search
@@ -21,6 +21,9 @@ public class Statement {
|
||||
reset() // necessary before applying new arguments
|
||||
clearArguments()
|
||||
if let arguments = arguments {
|
||||
guard !arguments.isDefault else {
|
||||
fatalError("Invalid StatementArguments.Default arguments.")
|
||||
}
|
||||
arguments.bindInStatement(self)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,6 @@ public struct StatementArguments {
|
||||
var isDefault: Bool { return true }
|
||||
|
||||
func bindInStatement(statement: Statement) {
|
||||
fatalError("StatementArguments.DefaultImpl can not be bound.")
|
||||
}
|
||||
|
||||
var description: String {
|
||||
|
||||
Reference in new issue
Block a user