[Oracle] procs parameters order

Please enter any bugs here. We will check this daily!

[Oracle] procs parameters order

Postby momiji on Thu Aug 16, 2007 11:35 pm

Hi,

I've been having a problem with procedures parameters, as the order of the parameters is not stable. Sometimes, it deffers.
After having downloaded the sourceforge MyMeta source code, I have found a quick fix (I'm using .NET 2, so don't know about previous versions).
In OracleParameters.cs, I added the following lines just before the call to PopulateArray :
Code: Select all
DataTable metaData = this.LoadData(OleDbSchemaGuid.Procedure_Parameters,
    new object[]{null, this.Procedure.Database.Name, this.Procedure.Name});

//Resort rows based on ORDINAL_POSITION
DataView metaView = metaData.DefaultView;
metaView.Sort = \"ORDINAL_POSITION\";
metaData = metaView.ToTable();

PopulateArray(metaData);


I don't know about Primary Keys (someone else problem), but I suggest to look into a similar fix.

I think the problem comes from OLEDB Schema, which does not return the rows in the same order each time, as it is on my configuration Oracle 10g.

Best regards,
Christian Bourgeois
momiji
Lurker
 
Posts: 3
Joined: Thu Aug 16, 2007 11:29 pm

Postby momiji on Thu Aug 16, 2007 11:47 pm

The same fix works for Primary Keys. The column to sort on is ORDINAL instead of ORDINAL_POSITION.

Regards
momiji
Lurker
 
Posts: 3
Joined: Thu Aug 16, 2007 11:29 pm


Return to Defect Reporting (DON'T Post dOOdad bugs HERE)

Who is online

Users browsing this forum: No registered users and 2 guests