DimPLSQLTable w/ TOracleDataSet

cosmini

Member²
hi Marco,
how can I pass a table list to a TOracleDataSet? It appears that that's only available w/ a TOracleQuery component. I'm using DOA 3.4.3

thx,
Cosmin

[This message has been edited by cosmini (edited 15 October 2003).]
 
DimPLSQLTable has been added to the TOracleDataSet in 3.4.6, so you will need to upgrade.

------------------
Marco Kalter
Allround Automations
 
thanks much Marco, upgrading to 3.4.6.3 did the trick however now I'm getting a different type of error:
"PLS-00418 array bind type must match pl/sql table row type." (on 8.1.6.1)

In my example, which works if called within Toad, I have:

type t_Sections is table of pls_integer index by binary_integer;
//changing pls_integer with integer yields 'no data'; pls_integer seems to yield correct results;

The Delphi section goes like this:
...
sections:variant;
...
DeclareVariable('sectionid',otInteger);
DimPLSQLTable('sectionid',wwdbGrid1.SelectedList.Count, 0);
...
Sections := VarArrayCreate([0, wwdbgrid1.SelectedList.Count-1], varVariant);
//I tried different types of var arrays but with no luck. The error occurs when I set active on the dataset (not on the SetVariable of the variant).

any suggestions?
thx much

Originally posted by mkalter:
DimPLSQLTable has been added to the TOracleDataSet in 3.4.6, so you will need to upgrade.


[This message has been edited by cosmini (edited 20 October 2003).]

[This message has been edited by cosmini (edited 20 October 2003).]

[This message has been edited by cosmini (edited 20 October 2003).]
 
Strange. What happens if you declare the variable as otFloat?

------------------
Marco Kalter
Allround Automations
 
I had tried otFloat and got same exact error. I have just tried it, again, just to confirm and same thing. (using DOA 3.4.6.4 on Ora 8.1.6)

Originally posted by mkalter:
Strange. What happens if you declare the variable as otFloat?


[This message has been edited by cosmini (edited 20 October 2003).]
 
Can you send me a little demo project to reproduce this?

------------------
Marco Kalter
Allround Automations
 
fixed it;

type t_Sections is table of pls_integer index by binary_integer;

I think DOA does not like "pls_integer", as I changed it to "integer" and all went well.

Originally posted by mkalter:
Can you send me a little demo project to reproduce this?

 
Back
Top