连表时deleted生成SQL不对 #1956
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#1956
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如下:SELECT * FROM
a
INNER JOINb
ON a.id=b.id INNER JOINc
ON b.id=c.id WHERE (a
.is_delete
=? ORa
.is_delete
IS NULL) AND (a
.is_delete
=? ORa
.is_delete
IS NULL) AND (a
.is_delete
=? ORa
.is_delete
IS NULL) LIMIT 1 [0001-01-01 00:00:00 0001-01-01 00:00:00 0001-01-01 00:00:00]What's wrong?
a.is_delete=? OR a.is_delete IS NULL为什么会生成三次呢,难道不应该分别是三个表名吗?表名都变为a表了