-
Notifications
You must be signed in to change notification settings - Fork 220
Added test for the pragma validate_ecsql_inserts #8087
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
base: master
Are you sure you want to change the base?
Added test for the pragma validate_ecsql_inserts #8087
Conversation
assert.isTrue(await reader.step()); | ||
|
||
try { | ||
ecdb.withCachedWriteStatement(`INSERT INTO test.Child(Parent.Id, Parent.RelECClassId) VALUES(1, ${parentClassId})`, () => {}); |
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.
Just pasting this as a comment from teams discussion
I think it would be good to have another test that uses insertElement and updateElement instead of a low level sql statement. Not sure if you can force an invalid class id in those though..
To make sure those methods fail gracefully if bind fails, as expected.
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.
Done!
… of https://github.com/iTwin/itwinjs-core into rohitptnkr/added-tests-invalid-relecclassid-validation
… of https://github.com/iTwin/itwinjs-core into rohitptnkr/added-tests-invalid-relecclassid-validation
… of https://github.com/iTwin/itwinjs-core into rohitptnkr/added-tests-invalid-relecclassid-validation
imodel-native: iTwin/imodel-native#1110