From b8c5af5cef873188de3aee076140f5c8ea796f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 24 Jan 2020 09:03:06 +0100 Subject: [PATCH] Fix availability test --- Tests/GRDBTests/QueryInterfaceExtensibilityTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/GRDBTests/QueryInterfaceExtensibilityTests.swift b/Tests/GRDBTests/QueryInterfaceExtensibilityTests.swift index 6613430ee..97a4bf0ee 100644 --- a/Tests/GRDBTests/QueryInterfaceExtensibilityTests.swift +++ b/Tests/GRDBTests/QueryInterfaceExtensibilityTests.swift @@ -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(_ 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