Skip to content

Additional tests in StringTypeWithLengthFixture related to NH-3403 and NH-3036 #481

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

Merged
merged 7 commits into from
Aug 3, 2016

Conversation

oskarb
Copy link
Member

@oskarb oskarb commented Jul 13, 2016

PR to test on various dialects. Not necessarily intended for direct merging.

oskarb added 7 commits August 3, 2016 01:56
…lects.

Most of these tests are now allowed to run on all SQL dialects, by more
narrowly excluding only the cases that are really irrelevant.

Also, querying with oversized parameter values are relevant also for
the equality operator etc, so add tests for this.

Related to NH-3403, NH-3036 and NH-2528.
Due to char set we may not be able to use 4000 characters on Oracle in the
test environment. Try 2000 instead.

Switch StringTypeWithLengthFixture over to mapping-by-code to facility different
mapping on different dialects.
SQLite doesn't enforce specified string lengths.
…tion type.

NhThrowsOnTooLong() and DbThrowsOnTooLong() were acquiring various dialect
and driver exceptions (more would have been required than what was present).
To avoid this, consider the prevention of the truncation/inserting the
important bit, and make the test care less about which particular exception
occur under which driver/dialect.

Rename the test cases to reflect this.
…ird.

Apparently we're supposed to add casts around the SQL parameters otherwise
Firebird seems to grab the type from the other operand. But that is a separate
issue.
@oskarb oskarb force-pushed the nh3403-param-length-test branch from 239287e to 4e204ed Compare August 2, 2016 23:57
@oskarb oskarb merged commit 88e66ab into nhibernate:master Aug 3, 2016
@oskarb oskarb deleted the nh3403-param-length-test branch August 3, 2016 09:34
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

Successfully merging this pull request may close these issues.

1 participant