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

Array support in SPs, Select, Insert... [CORE710] #1082

Open
firebird-automations opened this issue Sep 17, 2003 · 10 comments
Open

Array support in SPs, Select, Insert... [CORE710] #1082

firebird-automations opened this issue Sep 17, 2003 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pcisar

Is duplicated by CORE1918
Relate to CORE2516
Relate to CORE1219
Is duplicated by CORE2991

Votes: 6

SFID: 807922#⁠
Submitted By: pcisar

Enable support for Array elements in SPs as well as
SELECT, INSERT and UPDATE statements.

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue relate to CORE1219 [ CORE1219 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10734 ] => Firebird [ 15112 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue is duplicated by CORE1918 [ CORE1918 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue is duplicated by CORE2516 [ CORE2516 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue is duplicated by CORE2516 [ CORE2516 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue relate to CORE2516 [ CORE2516 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue is duplicated by CORE2991 [ CORE2991 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Saulius Vabalas (svabalas)

Any chance this requests can be scheduled for v3.0? Seems like there are multiple Duplicate requests reported, but nothing is happening since year 2003. Having arrays in SP's and triggers would save a lot time for developers using FB avoiding temporary tables or ugly code for simple coding tasks.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

I doubt I have any positive answer for you. So far virtually nobody used arrays in production and its support in connectivity toolset is very limited (if exists at all). The original implementation by Borland contains some bugs that were never addressed, and I'm afraid new development for the past years didn't pay enough attention to that code either. You could see people even requesting to drop this (basically dead) code and forget about it and I do understand the reasoning behind. Many years ago I tried to estimate the efforts required to have it supported in PSQL but gave up. A lot of work for a very small benefit. This is why it always had the lowest priority among other requested features. You know the roadmap priorities for v3.0 and I hardly see this feature fitting them. Personally, I'd rather spend time on declared local temporary tables (feature from the SQL standard) that are defined in the PSQL module, invisible outside that module, die once getting out of the appropriate scope and processed mostly in memory.

Going slightly off-topic, I have a feeling that once some procedure starts to urgently need arrays / linked lists / queues / stacks / hash tables instead of tables, it should be rewritten in the non-SQL language :-) Firebird v3.0 offers support for external procedures written in any language and they may run SQL callback statements inside their execution context, so it gets perfectly doable.

Perhaps we could better discuss your particular needs if you'd share why temporary tables are ugly for your design?

@firebird-automations
Copy link
Collaborator Author

Commented by: Saulius Vabalas (svabalas)

Array functionality in our case is needed only in PSQL area when some financial calculations based on months and other variables have to be calculated in SP's and when storing such data on temp tables produces too big overhead on performance due to accumulated old record versions. There is no need for arrays on table field level what so ever. So Your PSQL local temp in-memory table approach with execution lifetime approach seems like a good way to eliminate the need for arrays for ever. What's the likelihood of pushing this new feature request into v3.0?

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

1 participant