Join查询时,条件设置不对 #2044
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2044
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
定义以下两个表
使用查询
会生成以下sql:
看起来tenant表的条件都没有了
当把查询换成
就会报错
使用的xorm版本是v1.0.7
另外,如果查询到结果,那结构体里面的值也是乱套的。。
You should make the order of
extends
as same asjoin
.@lunny
thanks for your reply.
Even i used correct order, it still works wrong.
this code will give following sql: