× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2013-07-31T22:40:21Z  · nhilam last modified 2018-03-13T17:49:02Z

Bug with BatchUpdateException for Batch Import - gives incorrect # of rows inserted


PM
Dev
QA
Priority Major
Complexity Unknown
Component Tools - Import Tool
Version Future

 

Bug with BatchUpdateException for Batch Import - gives incorrect # of rows inserted

See issue 9021 on how to get the table structure and data file

I can reproduce the problem using batch import (not BCP import) and choose "first row contains column names" option.

Let's look at the first 10 lines of your data file.

When the "first row contains column names" option is checked, the first row is not considered as data.  It looks like 3 records get inserted, but BatchUpdateException.getUpdateCounts() returns 2 elements only.

f,g,h,i  <-- column names, not imported
j,k,l,m  <-- success
a,b,c,d  <-- success
j,k,l,m  <-- error, duplicate
a,b,c,d
  <-- error, duplicate
f,g,h,i  <-- success (select query shows that this record gets inserted)
j,k,l,m
a,b,c,d
f,g,h,i
j,k,l,m

When the "first row contains column names" option is not checked, the first row is imported.  In this case, the first 3 records get inserted and BatchUpdateException.getUpdateCounts() returns 3 elements correctly.

f,g,h,i  <-- success
j,k,l,m  <-- success
a,b,c,d  <-- success
j,k,l,m  <-- error, duplicate
a,b,c,d  <-- error, duplicate
f,g,h,i  <-- error, duplicate
j,k,l,m
a,b,c,d
f,g,h,i
j,k,l,m

There is a bug with BatchUpdateException -- Sybase bug, not ours.

Issue #9697

New
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017