home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC61701 Status: Closed

SYNTAX ERROR FROM IFXBULKCOPY.WRITETOSERVER WHEN THE TARGET TABLE
CONTAINS A SERIAL TYPE

product:
DB2 CONNECT / DB2CONNCT / 970 - DB2
Problem description:
If the columns in the data source and in the target table don't 
match and we don't use column mapping we will get a syntax error 
when the target table contains a SERIAL column. 
 
 
ERROR [42000] [IBM][IDS/UNIX64] A syntax error has occurred. 
   at IBM.Data.Informix.IfxBulkCopy.WriteToServer() 
   at IBM.Data.Informix.IfxBulkCopy.WriteToServer(IDataReader 
dataReader) 
   at ConsoleApplication1.Program.Main(String[] args) 
 
onstat -g ses shows: 
 
Current SQL statement : 
  INSERT INTO "informix"."instarget" ( "id" ) VALUES ( default ) 
 
The error disppears when the SERIAL is changed to INTEGER.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users using BulkCopy and when the source has only one        * 
* selected column and the destination table has a SERIAL       * 
* column as the first column among the other columns in the    * 
* destination table                                            * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* If the BulkCopy involves the source having only one column   * 
* and the BulkCopy is to the destination table with n column   * 
* with one of them being a SERIAL column as the first column,  * 
* this error occurs.                                           * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to v97fp2 or later release                           * 
****************************************************************
Local Fix:
N/A
available fix packs:
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
The generated 'Insert' statement internally would have syntax 
errors. Need to ensure that this does not happen
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC66631 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
24.06.2009
14.05.2010
14.05.2010
Problem solved at the following versions (IBM BugInfos)
9.7.FP2
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.2 FixList