Subject | Re: UDFs on Mac OS X |
---|---|
Author | jeffrobertsky@yahoo.com |
Post date | 2005-03-01T15:01:31Z |
Thanks for the tips. I'm embarrassed to say that my problem was
that I was not restarting the Firebird service after
adding "UdfAccess = Restrict UDF" to firebird.conf :-)
--- In firebird-support@yahoogroups.com, "christian_stengel"
<christian_stengel@y...> wrote:
that I was not restarting the Firebird service after
adding "UdfAccess = Restrict UDF" to firebird.conf :-)
--- In firebird-support@yahoogroups.com, "christian_stengel"
<christian_stengel@y...> wrote:
>statements.
> --- In firebird-support@yahoogroups.com, jeffrobertsky@y... wrote:
> >
> > I just saw your message, and I think we're in the same boat,
> > although I'm on Windows.
>
> I'm not shure. As I said - UDFs work on Linux - with the SQL
>the
> > Is the version of firebird on the machine that works as new as
> > one you installed to your Mac?mac). I don't know
>
> Both (client and server) are installed on the same machine (on the
> anything about Windows UDFs - but as MacOS X is a Unix machine -it should be the same
> as on Linux.documentation
>
> I'm very suspisious of the .so error that it gives to me.
>
> > If it's not a bug, then I hope someone will update the
> > to include whatever we're failing to do.worked with UDFs inside
>
> Your question was about UDFs in Hibernate? Well I have never
> Hibernate, but it should work this way:as it dosn't create it from
>
> 1. Create an empty database (I have to do this within hibernate,
> hibernate for me)the example)
> 2. declare that UDF (depends on your database tool - I use isql in
> 3. run ant schemaexportand it assumes, that
>
> The following code assumes that you want to use the ABS function
> you are working on localhost:has to be called for every
>
> -- snip --
> isql -user sysdba -password masterkey
>
> create database '127.0.0.1:/Volumes/common/database/test.fdb';
> commit;
> connect '127.0.0.1:/Volumes/common/database/test.fdb';
> declare external function abs
> double precision
> returns double precision by value
> entry_point 'IB_UDF_abs' module_name 'ib_udf';
> commit;
>
> exit;
>
> ant schemaexport;
>
> --
>
> and it should do it without errors. The declare external function
> stored procedure you want to user. The declarations of the UDFscan be found in the
> examples directory (the .sql files) in FIREBIRD_HOME.don't think though). If it gets an
>
> If it fails, try to access the UDF directry:
>
> isql -user sysdba -password masterkey
> connect '127.0.0.1:/path/to/database.fdb';
> select abs(1/2) from rdb$database;
>
> Does this get an error? If not, it's an hibernate issue (but I
> error, what error do you get? Do you get the same error here?
>
> The post your declaration string.
>
> Chris
>
> >
> > -Jeff