mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Fix Statement.validateArguments: StatementArguments.Default is never valid.
This commit is contained in:
1 parent
74f39fb080
commit
cc237560c6
1 file changed
+1
-3
@@ -94,9 +94,7 @@ public class Statement {
|
||||
if let argumentsKind = arguments?.kind {
|
||||
switch argumentsKind {
|
||||
case .Default:
|
||||
if argumentCount > 0 {
|
||||
fatalError("Invalid StatementArguments.Default arguments in `\(sql)`.")
|
||||
}
|
||||
fatalError("Invalid StatementArguments.Default arguments in `\(sql)`.")
|
||||
case .Array(count: let count):
|
||||
if count != argumentCount {
|
||||
fatalError("SQLite statement arguments mismatch: got \(count) argument(s) instead of \(argumentCount) in `\(sql)`.")
|
||||
|
||||
Reference in new issue
Block a user