Unix Technical Forum

Strange behaviour in 9.4 while calling a stroed procedure remotely

This is a discussion on Strange behaviour in 9.4 while calling a stroed procedure remotely within the Informix forums, part of the Database Server Software category; --> Hi All, IHAC who is testing IDS Version 9.40 FC4 on HP-UX11.0 and are in the process of upgrading ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:17 AM
Vineet Mehrotra
 
Posts: n/a
Default Strange behaviour in 9.4 while calling a stroed procedure remotely


Hi All,

IHAC who is testing IDS Version 9.40 FC4 on HP-UX11.0
and are in the process of upgrading 7.31 to 9.40.

Now while testing we encountered a unique situation in
which we start getting error 674. (routine name cannot
be resolved).

When we tried to call a stored procedure remotely(from
another instance on the same box) which accepts
(char,int,int) as inputs and giving("0125",1,"2") as
parameters in the stored procedure execute statement,
it failed with the error 674

while the same thing works if we do it on the instance
directly i.e., not remotely. I mean with same
parameters ("0125",1,"2")

But if we pass the parameters("0125",1,2) <see the
difference now 2 is not in quotes> to the stored
procedure while trying to execute it remotely, it
works just fine.

So is this a new feature or bug in 9.40 FC4.

Has anybody had this kind of issue while testing the
product.

Your help is appreciated on this.




__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/...otelifeengine/
sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:17 AM
rkusenet
 
Posts: n/a
Default Re: Strange behaviour in 9.4 while calling a stroed procedure remotely


"Vineet Mehrotra" <vin_us@yahoo.com> wrote in message news:cdjg85$n64$1@news.xmission.com...
>
> Hi All,
>
> IHAC who is testing IDS Version 9.40 FC4 on HP-UX11.0
> and are in the process of upgrading 7.31 to 9.40.
>
> Now while testing we encountered a unique situation in
> which we start getting error 674. (routine name cannot
> be resolved).
>
> When we tried to call a stored procedure remotely(from
> another instance on the same box) which accepts
> (char,int,int) as inputs and giving("0125",1,"2") as
> parameters in the stored procedure execute statement,
> it failed with the error 674
>
> while the same thing works if we do it on the instance
> directly i.e., not remotely. I mean with same
> parameters ("0125",1,"2")
>
> But if we pass the parameters("0125",1,2) <see the
> difference now 2 is not in quotes> to the stored
> procedure while trying to execute it remotely, it
> works just fine.
>
> So is this a new feature or bug in 9.40 FC4.
>
> Has anybody had this kind of issue while testing the
> product.
>
> Your help is appreciated on this.


In version 9.x stored procedures can be overloaded. When u type
the last parameter as "2", the engine tries to take it as a
char and since the signature of the procedure/function is char,int,int,
it fails with -674. When you send it as 2, the signature matches.
hence it executes. In 7.x version, since there is no procedure/function
overloading, regardless of "2" or 2, it always converts the last parameter
into int.

You still have a point about the same syntax working locally. So it might
very well be a bug with remote calling.

Bottomline: Don't try to fool around with procedure parameter casting. Try
to send parameters the same way they are declared.

ravi


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com