Skip to content
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

Writing boolean constant to nullable boolean field in SqlServer trigger #86

Open
lb-udes opened this issue Aug 1, 2023 · 0 comments
Open

Comments

@lb-udes
Copy link

lb-udes commented Aug 1, 2023

When writing a boolean constant to a nullable boolean field, the SQL generated is CASE WHEN 0 THEN 1 ELSE 0 END which is invalid and cause an exception An expression of non-boolean type specified in a context where a condition is expected, near 'THEN'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant