mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Fix SelectStatement.sourceTables for invalid statements
This commit is contained in:
1 parent
75e2edb471
commit
e5009af67e
1 file changed
+1
-2
@@ -274,9 +274,8 @@ public final class SelectStatement : Statement {
|
||||
// source tables.
|
||||
let sniffer = SourceTableSniffer(database)
|
||||
sniffer.start()
|
||||
defer { sniffer.stop() }
|
||||
try super.init(database: database, sql: sql)
|
||||
sniffer.stop()
|
||||
|
||||
self.sourceTables = sniffer.sourceTables
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user