ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Selece Query with Calling a function in Where clause

Post new topic  Reply to topic
 Selece Query with Calling a function in Where clause « View previous topic :: View next topic » 
Author Message
Gemz
PostPosted: Fri Dec 05, 2008 2:23 am    Post subject: Selece Query with Calling a function in Where clause Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Hi,

I am using WMB 6.1.0.0 and Oracle Spatial 10g R2 in Windows.

I am trying a select query with calling a function in WHERE clauses as follows :

SET Environment.Variables.ResultData[] = SELECT A.SHAPE,A.POSTCODE
FROM Database.{myschema}.OSMM.TWADL2 AS A, Database.{myschema}.OSMM.TWAREA AS B
WHERE B.TOID=Environment.Variables.toidRef
AND Database.{myschema}.SDO_WITHIN_DISTANCE(A.SHAPE, B.SHAPE, 'distance = 100')= 'TRUE';

In this 'SDO_WITHIN_DISTANCE' is a built in function in spatial database.

Wen i use this query i am getting 'Incorrect function or procedure name "SDO_WITHIN_DISTANCE" or argument count.' error.

Is it possible to call the function in Where clause ? .

-GemZ
Back to top
View user's profile Send private message
mgk
PostPosted: Fri Dec 05, 2008 2:53 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi.

To call a specific Oracle function in the WHERE clause, you will have to use PASSTHRU.


Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Selece Query with Calling a function in Where clause
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.