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
Appear ERR: "identifier is too long", with Oracle #693
Comments
this is a known and very very annoying issue with oracle. I dind't find a good solution for this problem, for now I suggest to shorten column and alias names |
fixed and released in |
I have installed TypeORM 0.2.11 and I still have this error. Here's the generated query: SELECT "StudyRandomizationCriteria"."id" AS "StudyRandomizationCriteria_id",
"StudyRandomizationCriteria"."studyId" AS "StudyRandomizationCriteria_stId",
"StudyRandomizationCriteria"."variableId" AS "StudyRandomizationCriteria_vaId",
"StudyRandomizationCriteria"."value" AS "StudyRandomizationCriteria_va",
"StudyRandomizationCriteria"."stratum" AS "StudyRandomizationCriteria_st"
FROM "studyRandomizationCriteria" "StudyRandomizationCriteria"
WHERE "StudyRandomizationCriteria"."studyId" = :where_0_0_0 -- PARAMETERS: [2] UPD: I noticed that TypeORM does attempt to shorten the identifiers, but after testing the query directly in Oracle, I found that identifiers |
I also run into this issue. Is it possible to add an alias option for |
This issue is still occurring in |
Does that beta version correct only that problem? Does not affect the overall stability of the library? |
In case it helps anyone and for future reference. I was having this same problem with oracle while doing an update using
this threw the exception: By logging the resulting query/DML I realised the parameters names where based on the In the files My (hopefully temporary) solution: Was to override the
It worked for now but I expect to come up with a different, more elegant and less error prone, solution in the future. |
I can confirm this issue is still open. For my test written for pull request #8959, the entity ZipCountry with combined identifier code and countryCode this messages thrown in the oracle test. Solution was, that I shorten the entity name. #693 (comment) |
when i use orm to connect oracle database, it's OK.
but when i use "connection.manager.find(Photo)" this function, oracle throw an ERR : "identifier is too long"!
i get a result afer i seek this problem all afternoon, the result is oracle is not allow the tablename'length and the cloumname'length overlimit the oracle‘s restraint, which is 30!
my photo'name is "t_tds_emer_event", and my colum'name is like "emer_event_id","emer_event_type", so i console the sql is "SELECT "t_tds_emer_event", "emer_event_type" AS "t_tds_emer_event_emer_event_type"...", t_tds_emer_event_emer_event_type causes this error!
The text was updated successfully, but these errors were encountered: