Closed anoordover closed 3 years ago
Yes, I did on my own environment. The constants I use are part of the so called ORA messages e.g. ORA-02291. The others are:
ORA-01400
ORA-00001
ORA-01438
ORA-12899
Yes, I'm aware of Ora errors. The reason I'm asking is that from my experience in some cases the library throws OracleTruncateException
when there is numeric overflow.
I think this Exception is only thrown by the non-core Oracle.ManagedDataAccess en the Oracle.DataAccess libraries This isn't correct. Reading internet says that this isn't a database problem but a problem in de ODP classes where truncation occurs. See https://docs.oracle.com/cd/B28359_01/win.111/b28375/OracleTruncateExceptionClass.htm and https://stackoverflow.com/questions/6606076/oracletruncateexception
I did an additional test using a decimal and I don't get this error. Is still get the ORA-01438 error (putting 10.001m in a number(5,4) column)
I tried another integrationtest but I stil didn't get this exception. I don't know how to get this type of exception... Passing a value too large for a long in a long when executing a select-query.
Can you add those tests to the tests project so that I can run them locally? Preferably following the same structure and covering all cases as the current tests do.
Can you add those tests to the tests project so that I can run them locally? Preferably following the same structure and covering all cases as the current tests do.
I added unittests for the Oracle implementation.
I'll check it in a couple of days.
I ran the tests and it worked fine. Can you make the changes according to the comments that I left? Also, add the attribute to the Oracle tests so they get skipped because AppVeyor doesn't support oracle 😞
I can't find how to skip all the test in a class in XUnit except by making the test-class non-public. Do you know another way to skip all the tests of a whole class?
There is no such way in xUnit. The only way is to override every test method and mark it as skipped.
Making the class private will remove those test from skipped section in unit tests results.
@anoordover Do you think that it should handle Ora-02292 too?
To be honest, I think you are right to say that we should support ORA-02292 as well.
Did you test it on a real Oracle database?