Skip to content

Commit 802b4ca

Browse files
committed
Correct suffix/prefix test
1 parent 1c60e5e commit 802b4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GRDB/Core/Database.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2103,7 +2103,7 @@ extension Database {
21032103
public var expandedSQL: String {
21042104
if let unexpandedSQL {
21052105
let sql = String(cString: unexpandedSQL)
2106-
if sql.hasSuffix("--") { return sql }
2106+
if sql.hasPrefix("--") { return sql }
21072107
}
21082108
guard let cString = sqlite3_expanded_sql(sqliteStatement) else {
21092109
return ""

0 commit comments

Comments
 (0)