-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DISTINCT in query builder #2641
Comments
@dariusmb can you please tell us more about your problem? |
I'm facing an issue with DISTINCT and Query Builder too, I don't know if it's the same that was reported here though, in my case if I do:
The first select is not being placed as the first select, resulting in a syntax error:
Database system/driver: TypeORM version: |
Why not simply:
? |
@afurculita The Postgres |
Wouldn't be interesting if we had a
|
Same issue here, the |
I made a PR fixing this issue #3065 |
@gabrielshawandpartners bit late to the party perhaps but i've found that writing this as one long select works (in the regular branch). may be helpful for people experiencing the same: |
…e more complicated selections
…e more complicated selections
select distinct p.id_company as idCompany distinct in query builder is not working for me |
Issue type:
[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[x]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
The text was updated successfully, but these errors were encountered: