Github user Crystark commented on the pull request:

    https://github.com/apache/storm/pull/374#issuecomment-74867621
  
    This would indeed be nice but after trying it out it seems that if a batch 
has more than one tuple to insert, then only the last tuple is inserted.
    
    In 
[JdbcClient#insert](https://github.com/Parth-Brahmbhatt/incubator-storm/blob/STORM-616/external/storm-jdbc/src/main/java/org/apache/storm/jdbc/common/JdbcClient.java#L48)
 we can see that there's only one set of `VALUES` (line 61-64) but then it 
loops on all the columns and each one overrides the previous values that were 
set as SQL parameters leading to only the last one beeing used.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to