Results 1 to 2 of 2

Thread: BatchSqlUpdate flush returns array of -2 values

  1. #1

    Default BatchSqlUpdate flush returns array of -2 values

    Hi,
    I'm using BatchSqlUpdate for updating database. At first I update rows and I want to check what rows was affected. But flush() returns always array of -2 values (public static final int SUCCESS_NO_INFO). So rows are updated but I don't know what of them are. I need to know it because rows are not affected must be inserted.

    The DB is Oracle 9.2.0.5 driver is 9.2.0.5 this (ojdbc14.jar)
    Java version is 1.4.2

    Help me

    Thanks
    Antoni

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    This seems to be a limitation of the JDBC driver. Unfortunately I don't think Spring JDBC can help much: you'll need to write application code to obtain more information from the database.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. MySQL DDL
    By analogueboy in forum Security
    Replies: 5
    Last Post: Aug 17th, 2007, 03:48 PM
  2. LDAPPasswordAuthenticationDao problem
    By benoit_m35 in forum Security
    Replies: 15
    Last Post: Jan 11th, 2006, 07:04 AM
  3. Replies: 2
    Last Post: May 5th, 2005, 09:35 PM
  4. Replies: 2
    Last Post: Dec 14th, 2004, 03:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •