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

Count (field) + UDF funcion = Loses con. [CORE439] #786

Closed
firebird-automations opened this issue May 1, 2002 · 7 comments
Closed

Count (field) + UDF funcion = Loses con. [CORE439] #786

firebird-automations opened this issue May 1, 2002 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: lango (lango)

SFID: 551007#⁠
Submitted By: lango

I created a function (using the delphi for that)
that formats values of the type it dates and a Pchar
comes back with the formatted value.

The function works perfectly in any select that I do
in the database, unless the select uses some function
native totalizadora of the database.
When I try to do a select below similar to the
example, I lose the connection with the database:
*-----------*
select
count (id_parcela), formatdate ('mmmm/yyyy',
dt_movimento) month_year
from
my_table
group by
formatdate ('mmmm/yyyy', dt_movimento)

*-----------*
id_parcela = integer
dt_movimento = date

I only receive the following message: " connection
lost to database "

That is a limitation of Interbase/FireBird or is a
bug really?

If it goes a limitation of Interbase/Firebird I
believe that the connection loss should not happen.

@firebird-automations
Copy link
Collaborator Author

Commented by: Alice F. Bird (firebirds)

Date: 2002-08-04 12:20
Sender: helebor
Logged In: YES
user_id=60469

When you write a UDF that doesn't handle memory correctly, you can expect it to crash the server. It is not a bug
in the database software.

Please don't use the bug tracker as a means to try to get corrective technical support. We get unhappy about this
because it wastes people's time and clutters up our system. We have the ib-support list for troubleshooting your
problems. Joining instructions can be found at http://firebirdsql.org.

Helen

@firebird-automations
Copy link
Collaborator Author

Commented by: Alice F. Bird (firebirds)

Date: 2002-08-04 11:44
Sender: pavlov_v
Logged In: YES
user_id=589315

I use similar UDF for formating DATE and everything works fine
on IB6.0 and FB1.0.
perhaps the problem is in your UDF.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Closed [ 6 ] => Reopened [ 4 ]

assignee: Dmitry Yemanov [ dimitr ]

SF_ID: 551007 =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

User's problem.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Reopened [ 4 ] => Resolved [ 5 ]

resolution: Won't Fix [ 2 ]

SF_ID: 551007 =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

SF_ID: 551007 =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10463 ] => Firebird [ 14755 ]

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