If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Store procedure on INFORMIX SE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-03, 04:48
tabacaru tabacaru is offline
Registered User
 
Join Date: Jan 2003
Posts: 9
Store procedure on INFORMIX SE

*-- ONLY INFORMIX SE 7.1
Is there any possibility to control on a store procedure if a parametr is passed and if not to have a default value ?
I didn't find anything in documentation !

Thanks a lot
Tabacaru Teodor
Reply With Quote
  #2 (permalink)  
Old 05-12-03, 14:42
astrue astrue is offline
Registered User
 
Join Date: Dec 2002
Location: Portland, OR, USA
Posts: 26
Yes.

According to my manuals, you can specify DEFAULT values for input arguments into your stored procedure when you declare them, although my initial attempts to do that were unsuccessful. However, you can also check: 'IF (my_input_arg IS NULL) THEN ... LET my_input_arg = my_default_value; ...' that kind of thing works quite reliably.

I am using SE 7.25 on Red Hat Linux 7.3, but this should work across a wide variety of releases and combinations. You probably solved this problem long ago, and didn't update the posting, but if not, I hope this helps.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On