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 » Multiple tables in a SELECT problem?

Post new topic  Reply to topic
 Multiple tables in a SELECT problem? « View previous topic :: View next topic » 
Author Message
TonyD
PostPosted: Sun Sep 28, 2003 11:55 pm    Post subject: Multiple tables in a SELECT problem? Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

I'm using V5 and have coded:
Code:

      SET Environment.Variables.Customer[] =
      (Select A.CUSTID,
      A.FIRSTNAME AS FIRSTNAME,
      A. ......,
      B.STREETNUMBER AS STREETNUMBER,
      B. .......
      from Database.bp234.CUSTOMER AS A,
           Database.bp234.ADDRESS AS B
      where A.SURNAME = InputRoot.MRM.MessageRequest.Surname;

However the execution fails with an SQL error saying:
Quote:

An unexpected token "." was found following "p234.CUSTOMER Abp234". Expected tokens may include: ",".

The original ESQL looks OK to me but it appears that the comma/space after 'AS A' has got lost somewhere in the internal reconstruction of the statement at execution time! Has anyone had a similar problem or is it something wrong that I have done? bp234.CUSTOMER and bp234.ADDRESS are valid tables and have been successfully accessed using other ESQL.
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Mon Sep 29, 2003 8:57 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

I believe you may have found a bug in WBIMB V5.0! Have you tried using PASSTHRU function to do this?
If you have latest CSD installed then you can open a PMR for this problem.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
TonyD
PostPosted: Tue Oct 07, 2003 9:47 pm    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

It was a bug...fixed in CSD02 (yet to be released).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Multiple tables in a SELECT problem?
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.