Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9fa5ed7

Browse files
add back ILIKE test
1 parent 0c8b379 commit 9fa5ed7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎Sources/FluentPostgreSQL/FluentPostgreSQLQuery.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public struct FluentPostgreSQLQuery: FluentSQLQuery {
3636
public var limit: Int?
3737
public var offset: Int?
3838
public var upsert: PostgreSQLUpsert?
39-
public var defaultBinaryOperator: GenericSQLBinaryOperator
39+
public var defaultBinaryOperator: PostgreSQLBinaryOperator
4040

4141
public static func query(_ statement: Statement, _ table: TableIdentifier) -> FluentPostgreSQLQuery {
4242
return .init(

‎Tests/FluentPostgreSQLTests/FluentPostgreSQLTests.swift‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,8 @@ class FluentPostgreSQLTests: XCTestCase {
356356
_ = try Planet(name: "Earth").save(on: conn).wait()
357357
_ = try Planet(name: "Mars").save(on: conn).wait()
358358

359-
let a = 5 // FIXME: ilike
360-
// let earth = try Planet.query(on: conn).filter(\.name, .ilike, "earth").first().wait()
361-
// XCTAssertEqual(earth?.name, "Earth")
359+
let earth = try Planet.query(on: conn).filter(\.name, .ilike, "earth").first().wait()
360+
XCTAssertEqual(earth?.name, "Earth")
362361
}
363362

364363
func testCreateOrUpdate() throws {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /