Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
543 views
in Technique[技术] by (71.8m points)

grails - Unknown column ‘x.y’ in ‘where clause’ when using sqlRestriction with createAlias

i have a withCriteria with createAlias("xRecords", "x", CriteriaSpecification.LEFT_JOIN)

When i try to do sqlRestriction("x.y > 1") I get the error:

Unknown column ‘x.y’ in ‘where clause’

y is a column in xRecords.

What am i missing?

question from:https://stackoverflow.com/questions/65851538/unknown-column-x-y-in-where-clause-when-using-sqlrestriction-with-createalia

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...