Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing associative array index by varchar2 from c# to pl/sql #220

Open
lutin7812 opened this issue Dec 1, 2021 · 3 comments
Open

Passing associative array index by varchar2 from c# to pl/sql #220

lutin7812 opened this issue Dec 1, 2021 · 3 comments

Comments

@lutin7812
Copy link

Hi, even though the odp.net driver supports associative array binding, it only supports array index by integer.
Is it possible that the driver could support in a future release, array index by varchar2?
So we could map c# hash table to oracle pl/sql ones.
Thank's for reply.

DECLARE
   SUBTYPE tvalue IS VARCHAR2 (1000);

   TYPE thash IS TABLE OF tvalue
      INDEX BY VARCHAR2 (50);

   hashtab   thash;
   elem      VARCHAR2 (50);
BEGIN
   hashtab ('avion') := NULL;
   hashtab ('voiture') := '748';
.............................
   hashtab ('train') := '749';
   hashtab ('bateau') := '750';
   hashtab ('velo') := '751';

@alexkeh
Copy link
Member

alexkeh commented Dec 1, 2021

If users vote for this feature, we'll definitely consider adding the feature. We have not seen indexing associative arrays by strings with .NET apps with much usage. It's pretty much all has been using numbers.

@lutin7812
Copy link
Author

Hi, thank's for reply.
The advantage I see is that instead of passing fixded named parameters between c# and ORACLE PL/SQL procedure, which restrict evolution of code, passing named parameters through some kind of hastable ease code evolution.
How can I encourage users voting?!

@alexkeh
Copy link
Member

alexkeh commented Dec 1, 2021

Use the thumbs up emoji on the original request above and/or have them respond to this thread. That seems to be the way many GitHub projects determine interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants