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 > DB2 > Strange Thing ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-05, 01:31
savilak savilak is offline
Registered User
 
Join Date: Feb 2005
Posts: 6
Strange Thing ???

Hi Guys,

I have the following annoying situation:


FUNCTION

CREATE FUNCTION DEVELOP.IMSI_DECODE (X varchar(15))
RETURNS VARCHAR(4)
LANGUAGE SQL
READS SQL DATA
NO EXTERNAL ACTION
DETERMINISTIC

BEGIN ATOMIC

IF (SUBSTR(X,1,7) >= '2800191' AND SUBSTR(X,1,7) <= '2800199') THEN
RETURN('PRE');
ELSE
RETURN('POST');
END IF;

END

QUERY

select DEVELOP.IMSI_DECODE (T.IMSI_IMSI)
from
(
select *
from DB2INST1.GSM_CALL
fetch first 1 rows only
) as T
fetch first 10 rows only;

RESULT (on AIX setup)
1
----
POST
POST
POST
POST
POST
POST
POST
POST
POST
POST
10 record(s) selected.

RESULT (on Win XP setup)
1
----
POST
1 record(s) selected.

Why do we have this result o the AIX setup?
We would appreciate your help on this.

Regards
Stathis
Reply With Quote
  #2 (permalink)  
Old 02-24-05, 02:56
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
I strongly suggest you investigate the possibility that there's a bug. Are the AIX an Win servers on the same version and FixPak. If the Win server is later than the AIX one what APARS have been applied?

James Campbell
Reply With Quote
  #3 (permalink)  
Old 02-24-05, 07:04
savilak savilak is offline
Registered User
 
Join Date: Feb 2005
Posts: 6
Thank you for you comment.

Win XP server is ver 8.0.1.36 but runs on single Processor environment.

The AIX one is 8.1.5 but runs on multi-processor environmnet.

It is a known bug that is resolved in ver 8.1.6.

Thanks again
Savilak
Reply With Quote
  #4 (permalink)  
Old 03-08-05, 02:37
savilak savilak is offline
Registered User
 
Join Date: Feb 2005
Posts: 6
Problem is resolved

I moved AIX to version 8.1.8 and the problem is resolved.
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