Possible BuildExceptionMessage problem

                 Key: DNET-243
                 URL: http://tracker.firebirdsql.org/browse/DNET-243
             Project: .NET Data provider
          Issue Type: Bug
          Components: ADO.NET Provider
    Affects Versions: 2.5.0, 2.5.0 Beta 2, 2.5.0 Beta 1, 2.5.0 Alpha 2, 2.5.0 
Alpha 1, 2.1.0
            Reporter: Jiri Cincura
            Assignee: Jiri Cincura

The function public void BuildExceptionMessage() Inside iscexception.cs file 
catch the formating errors, and provides the message "No message error found".
An example is the sql warning 204 for dialect 1 connections (order by code, 
where code can be a column of more than one

This error message (warning) have no arguments but has inside the message the 
{0} so the appendformat expect an artument at least.

To fix this I think it should be done like this:
// Avoid incorrectly build mesage args
 builder.AppendFormat(CultureInfo.CurrentCulture, message, args); } catch {
Really the message exists but it's incorrectly build (or incorrectly translated 
for future multilingual messages).

Then the message is: Field Ambiguity, sql error {0}... 
instead of "No error message found for.."

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: 
For more information on JIRA, see: http://www.atlassian.com/software/jira


Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
Firebird-net-provider mailing list

Reply via email to