File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 99import Foundation
1010
1111struct SQLParameterInliner {
12-
1312 // MARK: - Public API
1413
1514 /// Inlines parameter values into a parameterized SQL string for display purposes.
@@ -102,7 +101,7 @@ struct SQLParameterInliner {
102101 inString = true
103102 previousWasQuote = false
104103 }
105- result. append ( Character ( UnicodeScalar ( ch ) ! ) )
104+ result += nsSQL . substring ( with : NSRange ( location : i , length : 1 ) )
106105 i += 1
107106 } else {
108107 if previousWasQuote {
@@ -129,11 +128,11 @@ struct SQLParameterInliner {
129128 result += formatValue ( parameters [ paramNumber - 1 ] )
130129 i = numEnd
131130 } else {
132- result. append ( Character ( UnicodeScalar ( ch ) ! ) )
131+ result += nsSQL . substring ( with : NSRange ( location : i , length : 1 ) )
133132 i += 1
134133 }
135134 } else {
136- result. append ( Character ( UnicodeScalar ( ch ) ! ) )
135+ result += nsSQL . substring ( with : NSRange ( location : i , length : 1 ) )
137136 i += 1
138137 }
139138 }
Original file line number Diff line number Diff line change 88import Foundation
99
1010extension MainContentCoordinator {
11-
1211 // MARK: - SQL Preview
1312
1413 /// Routes SQL preview request to the appropriate handler based on current tab mode
You can’t perform that action at this time.
0 commit comments