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 » CURRENT_TIMESTAMP is not working when passed in PASSTHRU

Post new topic  Reply to topic
 CURRENT_TIMESTAMP is not working when passed in PASSTHRU « View previous topic :: View next topic » 
Author Message
udaybhaskar_kv
PostPosted: Tue Jun 13, 2017 6:04 am    Post subject: CURRENT_TIMESTAMP is not working when passed in PASSTHRU Reply with quote

Newbie

Joined: 13 Jun 2017
Posts: 3

Hello All,

We are using IIB10 on Linux platform. We are sending CURRENT_TIMESTAMP in PASSTHRU statement in ESQL for a message flow. This is sending to the Oracle database.

We are passing like the below in the query:
CAST(CURRENT_TIMESTAMP AS CHARACTER FORMAT 'yyyy-MM-dd hh:mm:ss:SS')

Error:
line:3899 message:2322.BIPmsgs 'Child SQL exception' , '22018', 0, '[IBM][ODBC Oracle Wire Protocol driver]Invalid character value. Error in parameter 19.

The same code is running fine in WMB7. Any update would be greatly appreciated. Many thanks!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 13, 2017 6:17 am    Post subject: Re: CURRENT_TIMESTAMP is not working when passed in PASSTHRU Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

udaybhaskar_kv wrote:
Hello All,

We are using IIB10 on Linux platform. We are sending CURRENT_TIMESTAMP in PASSTHRU statement in ESQL for a message flow. This is sending to the Oracle database.

We are passing like the below in the query:
CAST(CURRENT_TIMESTAMP AS CHARACTER FORMAT 'yyyy-MM-dd hh:mm:ss:SS')

Error:
line:3899 message:2322.BIPmsgs 'Child SQL exception' , '22018', 0, '[IBM][ODBC Oracle Wire Protocol driver]Invalid character value. Error in parameter 19.

The same code is running fine in WMB7. Any update would be greatly appreciated. Many thanks!
And you are sure Oracle is expecting the date to be yyyy-MM-dd and not MM-dd-yyyy ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
udaybhaskar_kv
PostPosted: Tue Jun 13, 2017 6:28 am    Post subject: Reply with quote

Newbie

Joined: 13 Jun 2017
Posts: 3

Yes.. The same code is working fine in WMB7 aswell.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jun 13, 2017 7:43 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I made myself a rule many years ago.

Do not put anything but pre-formed data in a DB operation.

Could you not cast the data to a cHAR before the PASSTHRU? Then with usertrace, you can see all that is going on in the call and importantly the code before it.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
udaybhaskar_kv
PostPosted: Tue Jun 13, 2017 9:51 pm    Post subject: Reply with quote

Newbie

Joined: 13 Jun 2017
Posts: 3

Many thanks! You are Right. But when we create the timestamp in a variable and send it across it is working fine. In this way, Broker Server timestamp is send to the Database. In our case, we want to insert the database time stamp itself in the database from broker. So we have to do this in the PASSTHRU itself.
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 » CURRENT_TIMESTAMP is not working when passed in PASSTHRU
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.