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 | |
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 |