Weird....add it to JIRA please.

Clinton


On Wed, 9 Feb 2005 09:38:54 -0600, Kyunam Kim <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi all. 
> 
>   
> 
> The following does insert only 4 records, skipping the first one. 
> 
> If I don't use batch, it inserts 5 perfectly. 
> 
>   
> 
> Has anyone seen this problem in the past? 
> 
>   
> 
> Thank you. 
> 
>   
> 
> Kyunam 
> 
>   
> 
> try { 
> 
>       _sqlMapClient.startBatch(); 
> 
>   
> 
>       for (int i = 0; i < 5; i++) { 
> 
>   
> 
>         _stopDAO.insert(location); 
> 
>   
> 
>       } 
> 
>   
> 
>       _sqlMapClient.executeBatch(); 
> 
>   
> 
>     } catch (final java.sql.SQLException e) { 
> 
>       e.printStackTrace(System.out); 
> 
>       throw e; 
> 
>     } 
> 
>

Reply via email to