We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f41e56 commit 1c60e5eCopy full SHA for 1c60e5e
GRDB/Core/Database.swift
@@ -2101,6 +2101,10 @@ extension Database {
2101
/// information from leaking in unexpected locations, so use this
2102
/// property with care.
2103
public var expandedSQL: String {
2104
+ if let unexpandedSQL {
2105
+ let sql = String(cString: unexpandedSQL)
2106
+ if sql.hasSuffix("--") { return sql }
2107
+ }
2108
guard let cString = sqlite3_expanded_sql(sqliteStatement) else {
2109
return ""
2110
}
0 commit comments