Replies: 1 comment
-
After analysis, I found that the origin of the problem is related to the number of characters in the name property of the FilterableOffSetConnection decorator, and after changing "agrupamentoOcorrenciasOcorrencias" to "agrupOcorrenciasOcorrencias", the WHERE condition was generated correctly, I did not identify whether the origin occurs in nest-query or in TypeORM, but the number of characters in this property will interfere in the generation of the condition. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an entity that has a relationship, I made all the configurations as usual in entities and DTOs, but the select to search for relationships is being generated with the WHERE incorrectly, I was unable to find the reason, below is the data:
error: Error: ORA-00904: "AGRUPAMENTOOCORRENCIASOCORRENCIAS"."CODIGOAGRUPAMENTO": identificador inválido
query failed: SELECT DISTINCT "bc7e0f4b0a993a0942870cd5acaa2"."TIPOAGROCORR" AS "9016ea0575c5bfd2b0208fa088a85", "bc7e0f4b0a993a0942870cd5acaa2"."CODAGRUP" AS "8373401effa2f7b981453dbc7164b", "bc7e0f4b0a993a0942870cd5acaa2"."CODOCORR" AS "78896283b6038588c68fd8b80b856" FROM "FRQ_AGRUPAOCORR_OCORR" "bc7e0f4b0a993a0942870cd5acaa2" WHERE agrupamentoOcorrenciasOcorrencias.tipoAgrupamento IN (:1) AND agrupamentoOcorrenciasOcorrencias.codigoAgrupamento IN (:2) FETCH NEXT 11 ROWS ONLY -- PARAMETERS: [100,1]
Beta Was this translation helpful? Give feedback.
All reactions