mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Fix availability test
This commit is contained in:
1 parent
ddd22a1dfb
commit
b8c5af5cef
1 file changed
+2
-2
@@ -45,7 +45,7 @@ func castDeprecated(_ value: SQLExpressible, as type: Database.ColumnType) -> SQ
|
||||
return SQLExpressionLiteral(literal: castLiteral)
|
||||
}
|
||||
|
||||
#if compiler(>=5.0)
|
||||
#if swift(>=5.0)
|
||||
func cast<T: SQLExpressible>(_ value: T, as type: Database.ColumnType) -> SQLExpression {
|
||||
return SQLLiteral("CAST(\(value) AS \(sql: type.rawValue))").sqlExpression
|
||||
}
|
||||
@@ -123,7 +123,7 @@ class QueryInterfaceExtensibilityTests: GRDBTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
#if compiler(>=5.0)
|
||||
#if swift(>=5.0)
|
||||
func testCast() throws {
|
||||
let dbQueue = try makeDatabaseQueue()
|
||||
try dbQueue.inDatabase { db in
|
||||
|
||||
Reference in new issue
Block a user