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 » unable to pass null to DB2 column

Post new topic  Reply to topic
 unable to pass null to DB2 column « View previous topic :: View next topic » 
Author Message
Monk
PostPosted: Mon Dec 03, 2007 8:21 pm    Post subject: unable to pass null to DB2 column Reply with quote

Master

Joined: 21 Apr 2007
Posts: 282

Hi ,

I use MB 5 on windows 2K.

I m trying to insert a NULL value into a DB2 table for a column of type TIMESTAMP. i have configured it to be nillable.

when i do a insert from my ESQL & pass NULL to this column.
I get a exception..
following is the exception..


<MessageID>414d51205742524b5f514d20202020209ad7534720002c07</MessageID>
<ExceptionList>
<File>F:\build\S500_P\src\DataFlowEngine\ImbComputeNode.cpp</File>
<Line>472</Line>
<Function>ImbComputeNode::evaluate</Function>
<Type>ComIbmComputeNode</Type>
<Name>MF_VOC_SERVICE_REQUEST#FCMComposite_1_2</Name>
<Label>MF_VOC_SERVICE_REQUEST.SendXMLResponse</Label>
<Text>Caught exception and rethrowing</Text>
<Catalog>BIPv500</Catalog>
<Severity>3</Severity>
<Number>2230</Number>
<RecoverableException>
<File>F:\build\S500_P\src\DataFlowEngine\ImbRdl\ImbRdlStatementGroup.cpp</File>
<Line>158</Line>
<Function>SqlStatementGroup::execute</Function>
<Type>ComIbmComputeNode</Type>
<Name>MF_VOC_SERVICE_REQUEST#FCMComposite_1_2</Name>
<Label>MF_VOC_SERVICE_REQUEST.SendXMLResponse</Label>
<Text>Error detected, rethrowing</Text>
<Catalog>BIPv500</Catalog>
<Severity>3</Severity>
<Number>2488</Number>
<Insert>
<Type>5</Type>
<Text>.MF_VOC_SERVICE_REQUEST_Compute.Main</Text>
</Insert>
<Insert>
<Type>5</Type>
<Text>39.9</Text>
</Insert>
<Insert>
<Type>5</Type>
<Text>UpdateFileTxnTable(CAST(InputRoot.XML.Files.DealerCd AS CHARACTER), CAST(InputRoot.XML.Files.File[nCounter].Filename AS CHARACTER), CAST(InputRoot.XML.Files.File[nCounter].FileHash AS CHARACTER), CAST(InputRoot.XML.Files.File[nCounter].FileSize AS INTEGER), CAST(InputRoot.XML.Files.File[nCounter].TotalMsgs AS INTEGER), CAST(InputRoot.XML.Files.File[nCounter].FileBlkSize AS INTEGER), CAST(InputRoot.XML.Files.File[nCounter].FileBlkNo AS INTEGER), 'INP', 'NEW', '0', CURRENT_TIMESTAMP, NULL, CAST(InputRoot.XML.Files.AppId AS CHARACTER));</Text>
</Insert>
<RecoverableException>
<File>F:\build\S500_P\src\DataFlowEngine\ImbRdl\ImbRdlRoutine.cpp</File>
<Line>1221</Line>
<Function>SqlRoutine::setupChildEnv</Function>
<Type>ComIbmComputeNode</Type>
<Name>MF_VOC_SERVICE_REQUEST#FCMComposite_1_2</Name>
<Label>MF_VOC_SERVICE_REQUEST.SendXMLResponse</Label>
<Text></Text>
<Catalog>BIPv500</Catalog>
<Severity>3</Severity>
<Number>2930</Number>
<Insert>
<Type>5</Type>
<Text>MODIFIED_DT</Text>
</Insert>
<Insert>
<Type>5</Type>
<Text>NULL</Text>
</Insert>
<Insert>
<Type>5</Type>
<Text>TIMESTAMP</Text>
</Insert>
</RecoverableException>
</RecoverableException>
</ExceptionList>


Now 'MODIFIED_DT is of type TIMESTAMP and its nillable in DB2.

if i do a manual insert in DB2 using INSERT command in Db2 prompt and pass a NULL to this column it works fine.

Any ideas why i cant insert a NULL from ESQL ?.
_________________
Thimk
Back to top
View user's profile Send private message
Monk
PostPosted: Mon Dec 03, 2007 9:21 pm    Post subject: Reply with quote

Master

Joined: 21 Apr 2007
Posts: 282

solved..
my mistake..

_________________
Thimk
Back to top
View user's profile Send private message
richhel
PostPosted: Wed Apr 16, 2008 12:52 am    Post subject: Reply with quote

Newbie

Joined: 26 Dec 2007
Posts: 9

Please let me know what u did for this error.



Thanks,
-Reena
Back to top
View user's profile Send private message
richhel
PostPosted: Wed Apr 16, 2008 12:55 am    Post subject: Reply with quote

Newbie

Joined: 26 Dec 2007
Posts: 9

Hi,

I have faced the same error.

Please guide me.


Thanks,
-Richhel
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 » unable to pass null to DB2 column
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.