-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Duplicate column name (ER_DUP_FIELDNAME errno: 1060) when join table #810
Comments
Take a look at this project: |
I'm having the same issue. Is there any plan to update this library? Or should be switching to the forked projects? |
I have same issue when use @Crud({
model: {
type: TransactionEntity,
},
routes: {
only: ['getManyBase', 'getOneBase'],
},
query: {
alwaysPaginate: true,
limit: 25,
join: {
deposit: {
eager: true,
},
},
})
// QueryFailedError: ER_DUP_FIELDNAME: Duplicate column name 'TransactionEntity_id' |
same issue here , anyone has a solution ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Current behavior
When I try to join ('eager' type) related entity I received 'Duplicate column name'
[Nest] 39063 - 11/30/2022, 12:11:42 PM ERROR [ExceptionsHandler] Duplicate column name 'Fundraising_id'
Here is an exception:
I think an important precondition here is: I am trying to get data with ?limit
When I tried to get data without limit I didn't have error:
Expected behavior
Eagerly joined column without duplication error
What I have tried
I tried aliases but it doesn't help #281 (comment) relation field renaming also wasn't helpful
My CRUD example:
Models:
##Generated Query example
For Tooling issues:
Packages:
The text was updated successfully, but these errors were encountered: