Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


C functions for use with MimerSQL?

C functions for use with MimerSQL?

C functions for use with MimerSQL?

Is it possible to use functions written in C as scalar SQL

I like to include mathematic functions like SIN or EXP, but
I don't want to reinvent the wheel by writing the beast
using SQL. I can't find anything about using C functions
in MimerSQL.

Suppose there's a shared library (or dll) called mymath.so
(mymath.dll) which exports the functions SIN and EXP. Is
there an SQL statement like this:

                LIBRARY 'mymath' NAME 'SIN';

RE: C functions for use with MimerSQL?

It is not possible to add C-functions written in C. All of the normal math functions are already supported however. They are called DSIN, DCOS and so on. The D stands for DOUBLE as the functions both take doubles as arguments and return doubles.

If you are using ODBC you can figure these names out by calling SQLNativeSql with a statement like  "select {fn SIN(1.2)} from t1" which will give you back: "select DSIN(1.2) from t1"

RE: C functions for use with MimerSQL?


Thank you for the response, so it is possible to use some
math functionality.

Too bad, but I still hope for merging C routines in Mimer.

Unfortunately I am not able to find these functions in the
documentation (.pdf files) yet while looking at the
available functions in the SQL Reference.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close