InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: Aggregates and user-defined functions


Hello,

I wrote user-defined function formattime. The function accepts Integer,
Long, and Date values and returns a String. If I execute a statement
like

SELECT formattime(time_col) ...

the function returns the desired strings, while 

SELECT formattime(sum(time_col))

throws a SQLException.

I did some tests with the example functions that come with InstantDB and
found that if such a function is placed around an aggregate it either
throws an SQLException (without further information) or it returns an
empty result set.

Does InstantDB not allow results of aggregates to be passed to user
defined-functions?


Thanks,
Dirk
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.