Skip to content

Commit d8fb21f

Browse files
committed
Update SQLiteAdapter.swift
1 parent b5608c2 commit d8fb21f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/SQLiteAdapter/SQLiteAdapter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ open class SQLite: SQLiteType {
536536
let columnCount = sqlite3_column_count(sqlStatement)
537537
for index in 0..<columnCount {
538538
if let columnName = sqlite3_column_name(sqlStatement, index) {
539-
if let validatedColumnName = String(validatingUTF8: columnName) {
539+
if let validatedColumnName = String(validatingCString: columnName) {
540540
columnNamesToReturn.append(validatedColumnName)
541541
} else {
542542
throw SQLiteError.Column(getErrorMessage(dbPointer: dbPointer))

0 commit comments

Comments
 (0)