You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] latest
[ ] @next
[x] 6.0.0 (or put your version here)
Steps to reproduce or a small repository showing the problem:
I have 3 tables, unit,word, and unit_words which is records the unit and word's many to many relationship.
i am going to selelect one unit and the count of the words in it. i found the loadRelationCountAndMap method,looks it can help me.so i write code like this:
why i run the code ,i got an sql error, and i found the sql typeorm generate is like this
SELECT `words_rc`.`unit_id` AS `parentId`, COUNT(`word`.`word_id`) AS `cnt` FROM `word` `word`
INNER JOIN `unit_words` `words_rc` ON `words_rc`.`unit_id`
IN (0fa1c80c-7a80-4809-84c6-daa9d59dccd5,1943c3eb-3a6e-450d-8445-704a3dd795fd,46e4a934-fa40-4c82-ab2a-272138c2835a)
AND `words_rc`.`word_id` = word.word_id GROUP BY `words_rc`.`unit_id`
problem is on IN (0fa1c80c-7a80-4809-84c6-daa9d59dccd5,1943c3eb-3a6e-450d-8445-704a3dd795fd,46e4a934-fa40-4c82-ab2a-272138c2835a)
it seems should to be IN ("0fa1c80c-7a80-4809-84c6-daa9d59dccd5","1943c3eb-3a6e-450d-8445-704a3dd795fd","46e4a934-fa40-4c82-ab2a-272138c2835a")
why that? is that a bug or some I did wrong?
looks this post is a similar issue #2338
The text was updated successfully, but these errors were encountered:
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[x]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[ ]
latest
[ ]
@next
[x]
6.0.0
(or put your version here)Steps to reproduce or a small repository showing the problem:
I have 3 tables, unit,word, and unit_words which is records the unit and word's many to many relationship.
i am going to selelect one unit and the count of the words in it. i found the loadRelationCountAndMap method,looks it can help me.so i write code like this:
why i run the code ,i got an sql error, and i found the sql typeorm generate is like this
problem is on IN (0fa1c80c-7a80-4809-84c6-daa9d59dccd5,1943c3eb-3a6e-450d-8445-704a3dd795fd,46e4a934-fa40-4c82-ab2a-272138c2835a)
it seems should to be IN ("0fa1c80c-7a80-4809-84c6-daa9d59dccd5","1943c3eb-3a6e-450d-8445-704a3dd795fd","46e4a934-fa40-4c82-ab2a-272138c2835a")
why that? is that a bug or some I did wrong?
looks this post is a similar issue
#2338
The text was updated successfully, but these errors were encountered: