Exception "ORA-06502: PL/SQL: numeric or value error" during execution OracComand in Direct mode.
Posted: Sun 04 Feb 2007 15:32
I am using last OraDirect.Net release 3.55.18. Connection parameters Direct=true, Unicode=true. I am calling function with varchar output states in Oracle package. Function always return the same output string.
I am using Oracle command to call function. First call works well. When I am calling this function in loop on 10 or 15 call function starts to return on 1 character less every call. And at the end I am recieving an exception:
CoreLab.Oracle.OracleException occurred
Message="ORA-06502: PL/SQL: numeric or value error: character string buffer too small\nORA-06512: at line 2"
Source="CoreLab.Oracle"
Code=6502
Offset=0
StackTrace:
at CoreLab.Oracle.OracleCommand.a(CommandBehavior A_0, IDisposable A_1, Int32 A_2, Int32 A_3)
at CoreLab.Common.DbCommandBase.c(CommandBehavior A_0)
at System.Data.Common.DbCommand.ExecuteReader()
at CoreLab.Common.DbCommandBase.ExecuteNonQuery()
at Opengaming.UnifiedWizard.WinGroupControl.readBasketFromDB(Group grp, Decimal basketCost, Int32 basketID) in D:\4GCasino\UW\Development\Opengaming.UnifiredWizard\UserControls\WinGroupControl.cs:line 379
Please investigate this problem and fix it as well.
Regards Leonid
I am using Oracle command to call function. First call works well. When I am calling this function in loop on 10 or 15 call function starts to return on 1 character less every call. And at the end I am recieving an exception:
CoreLab.Oracle.OracleException occurred
Message="ORA-06502: PL/SQL: numeric or value error: character string buffer too small\nORA-06512: at line 2"
Source="CoreLab.Oracle"
Code=6502
Offset=0
StackTrace:
at CoreLab.Oracle.OracleCommand.a(CommandBehavior A_0, IDisposable A_1, Int32 A_2, Int32 A_3)
at CoreLab.Common.DbCommandBase.c(CommandBehavior A_0)
at System.Data.Common.DbCommand.ExecuteReader()
at CoreLab.Common.DbCommandBase.ExecuteNonQuery()
at Opengaming.UnifiedWizard.WinGroupControl.readBasketFromDB(Group grp, Decimal basketCost, Int32 basketID) in D:\4GCasino\UW\Development\Opengaming.UnifiredWizard\UserControls\WinGroupControl.cs:line 379
Please investigate this problem and fix it as well.
Regards Leonid