-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support cast in default values #1754
support cast in default values #1754
Conversation
⚪
|
⚪
|
37bd9db
to
e98d381
Compare
⚪
|
⚪
|
const auto& constrValue = constraint.Value().Cast(); | ||
bool isPgNull = constrValue.Ptr()->IsCallable() && | ||
constrValue.Ptr()->Content() == "PgCast" && constrValue.Ptr()->ChildrenSize() >= 1 && | ||
constrValue.Ptr()->Child(0)->IsCallable() && constrValue.Ptr()->Child(0)->Content() == "Null"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Думаю, тут нужен case insensitive match по "Null". И круто быэто в отдельную функцию вытащить
continue; | ||
|
||
YQL_ENSURE(constraint.Value().IsValid()); | ||
bool shouldEvaluate = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вроде норм, но не до конца есть понимание нужно ли тут настолько strict условие. Что если просто проверить, что если там не data consturctor, то навесить EvaluateExpr?
Changelog entry
Changelog category
Additional information
...