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

new function mechanism for view-sp handling problem solve [CORE1614] #2035

Closed
firebird-automations opened this issue Nov 24, 2007 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: ibrahim bulut (ibrahim_bulut)

hi all,
i have using firebird since 2000. i have two big application written with delphi and firebird. one of them is firebird 1,0 and another is firebird 1,5. i am planning to upgrade them firebird 2,0.

i have a request. i use udf but sometimes udf library crash the server (not always, sometimes). i think this problems about windows problem. i need a database function i.e dbfunction like an udf. but this function dos not use a dll library. this function stored in the database and function has an output value. like sqlserver functions and delphi functions.

sql server functions work three different ways
1-scalar function (like a delphi function)
2-table value function
3-multi statement table value function

i can do 2 and 3 with stored procedure. first status is an udf.
in fact, the problem is about the views and stored procedures.
i use views generally. but view can not use a stored procedure.
i returns a field and a row from sp but sp can not use with a view.
so, i am writting an udf and upgrade my customers system. this is too costly.

in fact, i want to a udf function for using with views but not in a dll library file.

also, why i can not use stored procedures with views please explain me.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

You already can do, in V2.0:

create procedure p1
returns (n integer)
as
begin
n = 1;
suspend;
end!

create view v1 (n) as
select (select n from p1)
from rdb$database!

select * from v1!

And ALTER VIEW and complete SP usage in view will be included in V2.5.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13501 ] => Firebird [ 14082 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

The subject line is a bit misleading, but the request is actually about a workaround for inability to use SPs inside views. Since this feature is supported starting from v2.5, I'm resolving this ticket.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 Alpha 1 [ 10224 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Version: 2.5 Alpha 1 [ 10224 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

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