Commit 7f8d97d
committed
Add test for PostgreSQL SqlState 22001 max length violation (fixes #92)
Add a PostgreSQL-specific test that verifies MaxLengthExceededException
is thrown when executing raw SQL that inserts a value exceeding the
character varying column limit. This exercises the IDbCommandInterceptor
CommandFailed path for PostgreSQL error 22001
(StringDataRightTruncation).
The PostgreSQL classifier already handles SqlState 22001 via
PostgresErrorCodes.StringDataRightTruncation. This test ensures the
full interceptor pipeline works for raw SQL operations in addition
to the existing SaveChanges and ExecuteUpdate test coverage.
https://claude.ai/code/session_0147Z5VzzZpX1pUfaAapNZie1 parent 8a0db27 commit 7f8d97d
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
0 commit comments