Skip to content

Commit 758f92d

Browse files
authored
Fixup test
1 parent 9dcf067 commit 758f92d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Tests/SQLKitExtrasTests/SQLKitExtrasTests.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,8 @@ struct SQLKitExtrasTests {
258258
#expect(serialize(.cast("foo", to: "text")) == #"CAST("foo" AS "text")"#)
259259
#expect(serialize(.cast(.column("foo"), to: "text")) == #"CAST("foo" AS "text")"#)
260260

261-
let mysqlDB = MockSQLDatabase(dialect: "mysql")
262-
#expect(mysqlDB.serialize(SQLCastExpression(.column("foo"), to: "text")).sql == #"CAST("foo" AS text)"#)
263-
264-
let postgresDB = MockSQLDatabase(dialect: "postgresql")
265-
#expect(postgresDB.serialize(SQLCastExpression(.column("foo"), to: "text")).sql == #"CAST("foo" AS "text")"#)
261+
#expect(MockSQLDatabase(dialect: "mysql").serialize(SQLCastExpression(.column("foo"), to: "text")).sql == #"CAST("foo" AS text)"#)
262+
#expect(MockSQLDatabase(dialect: "postgresql").serialize(SQLCastExpression(.column("foo"), to: "text")).sql == #"CAST("foo" AS "text")"#)
266263
}
267264

268265
@Test

0 commit comments

Comments
 (0)