Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Getting function return type(s) from SMI

 
   Database Help (Home) -> Informix RSS
Next:  Can oracle notify an application  
Author Message
cartouchbea

External


Since: Jan 22, 2009
Posts: 1



(Msg. 1) Posted: Thu Jan 22, 2009 12:41 pm
Post subject: Getting function return type(s) from SMI
Archived from groups: comp>databases>informix (more info?)

I've got some SPL "not variant" functions that I would like to begin
using as keys for some indexes in a database. I also have an
automated re-indexing process that runs periodically that will
calculate the amount of disk space that an index will take when the
index is regenerated. However, I don't have a good way to determine
the size of the key if a function is in the key. Is there some way to
accomplish this through some query of SMI? When I look at the values
in sysprocedures.ret_len, it doesn't really look accurate.

Thanks in advance.

 >> Stay informed about: Getting function return type(s) from SMI 
Back to top
Login to vote
Fernando Nunes

External


Since: Jun 13, 2008
Posts: 83



(Msg. 2) Posted: Thu Jan 22, 2009 6:25 pm
Post subject: Re: Getting function return type(s) from SMI [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

wrote:
> I've got some SPL "not variant" functions that I would like to begin
> using as keys for some indexes in a database. I also have an
> automated re-indexing process that runs periodically that will
> calculate the amount of disk space that an index will take when the
> index is regenerated. However, I don't have a good way to determine
> the size of the key if a function is in the key. Is there some way to
> accomplish this through some query of SMI? When I look at the values
> in sysprocedures.ret_len, it doesn't really look accurate.
>
> Thanks in advance.

I haven't checked the contents. But maybe you want to take a look at:

http://publib.boulder.ibm.com/infocenter/idshelp/v115/topic/com.ibm.sq...doc/sys

Without checking it, I can only suggest that you'd have to decode the datatype
where paramattr=5 and in some cases (CHAR) check the paramlen.

Regards.

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...

 >> Stay informed about: Getting function return type(s) from SMI 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
archecker return codes - Does anyone know or know where I can find the meanings of the archecker exit codes when verifying a backup taken with ontape? exit code 0 looks like it follows the standard of meaning success, but I am also seeing a return code of 3 when all log..

Return top row - I have a table that has week, year, and date information. It is structured so I have a week number, year number, beginning date (Sundays), and ending date (Saturdays) and these are only by weeks. For example this is what it looks like: wx_year ..

SPL and system() - getting the return code. - Had to deal with this recently and checked the archives to see what was out here - nothing. So I had to figure it out for myself. Here is a writeup of that for the next fellow. Perhaps an FAQ entry. I am jotting this down from memory/notes and while....

exec_for_rows can't return an empty cursor - execute function exec_for_rows('select * from systables where 1=0') gives the -7426 error -7426 There is no active query on this connection. Verify the logic in the user-defined routine. You cannot retrieve or query results without an active query.

Return record where date is between fields - Hello, I'm not exactly sure how to search on this, but I'm guessing this has been done before and is quite easy. I just am not sure how to figure it out. I have a table that has week, year, and date information. It is structured so I have a week..
   Database Help (Home) -> Informix All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]