Skip to content

Commit

Permalink
Revert "Disable Decimal as a SQLType on Swift 6, crashes swiftc"
Browse files Browse the repository at this point in the history
This reverts commit 7135750.
  • Loading branch information
helje5 committed Oct 3, 2024
1 parent a0c60f1 commit 82dcbb0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Sources/Lighter/Schema/SQLiteValueType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -699,13 +699,6 @@ extension URL {
}
}

#if compiler(<6) // Unavailable due to a swiftc crasher in 16b6
//SILFunction type mismatch for 'NSDecimalString':
// '$@convention(c) (UnsafePointer<Decimal>, Optional<AnyObject>)
// -> @autoreleased Optional<NSString>'
// !=
// '$@convention(c) (UnsafePointer<Decimal>, Optional<AnyObject>)
// -> @autoreleased NSString'
extension Decimal : SQLiteValueType {

public struct SQLCouldNotParseDecimal: Swift.Error, Sendable {
Expand Down Expand Up @@ -759,7 +752,6 @@ extension Decimal : SQLiteValueType {
.bind(unsafeSQLite3StatementHandle: stmt, index: index, then: execute)
}
}
#endif // compiler(<6) // Unavailable due to a swiftc crasher in 16b6

extension UUID : SQLiteValueType {

Expand Down Expand Up @@ -855,5 +847,4 @@ extension UUID : SQLiteValueType {
}
}
}

#endif // canImport(Foundation)

0 comments on commit 82dcbb0

Please sign in to comment.