Allow adding prefix for fields with extends
tag #1284
No reviewers
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1284
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "same-type-extends"
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?
Added new syntax like
extends('Prefix')
to enable matching allextended fields as
PrefixFieldName
.Close go-xorm/xorm#1270
Codecov Report
79.31% <100%> (+2.21%)
61.79% <100%> (+0.21%)
52.38% <0%> (-3.76%)
62.26% <0%> (-0.7%)
Continue to review full report at Codecov.
Join Table Alias Name or prefix of the name, which is better?
instead of
IMO having just prefix is better here since it refers to what the column name of the query result should be changed to, it doesn't have to have anything in common with the table (the prefix I mean).
Sorry to bother you, but would I be able to get an ETA on this review? This is kind of a blocking change for me.
How to handle
SizeClosed *Size
xorm:"extends('')"` ?Maybe as if there was no argument? So the same as just
xorm:"extends"
?@mskrip I think it's reasonable.
@lunny Added test for that case
@lunny ping
@mskrip will do last review tomorrow morning.
@lunny Okay, thank you
@mskrip Thanks!