Giter Club home page Giter Club logo

Comments (3)

edthamm avatar edthamm commented on August 17, 2024

Concerning possible solution a)

SELECT
  NAME, TYPE, USAGE
FROM
  SYS.DBA_IDENTIFIERS
WHERE
  NAME = :1
  AND USAGE = 'DECLARATION'
;

yields

type == ASSOCIATIVE ARRAY if index by VARCHAR2
and
type == INDEX TABLE if index by PLS_INTEGER

This is in my opinion one step closer to solution a).
However I have as of yet not found a way to determine the index length (This could be worked around by setting it to 4000 not great but works).
Additionally as this is undocumented behavior I assume it could be changed at any time.
Trails done against Oracle 12c 12.1.0.2.0 64-bit

I have also thought of simply creating the temp_table and rescuing the exception should the insert fail but have not yet found a concise way to integrate that in to the existing codebase.

from ruby-plsql.

edthamm avatar edthamm commented on August 17, 2024

If you are interested in the current solution it can be viewed here:
https://github.com/edthamm/ruby-plsql/pull/1/files

If this is deemed an appropriate solution I will create a pull request containing only the changes relevant to this project

from ruby-plsql.

stale avatar stale commented on August 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from ruby-plsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.