Skip to content

Commit

Permalink
Adding distinct method
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Segura committed Sep 25, 2022
1 parent b012d88 commit 764a9da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/MIODB/MDBQuery.swift
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ public class MDBQuery: MDBQueryWhere {
case .UNKOWN:
return ""
case .SELECT:
return composeQuery( [ "SELECT " + selectFieldsRaw( ) + " FROM " + MDBValue( fromTable: table ).value
//return composeQuery( [ "SELECT " + distinctOnRaw( ) + selectFieldsRaw( ) + " FROM " + MDBValue( fromTable: table ).value
return composeQuery( [ "SELECT " + distinctOnRaw( ) + selectFieldsRaw( ) + " FROM " + MDBValue( fromTable: table ).value
, aliasRaw( )
, joinRaw( )
, whereRaw( )
Expand Down

0 comments on commit 764a9da

Please sign in to comment.