This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Im using prepared statement. The statement is prepared outside the loop. Inside the loop, datas are varied and added to batch. On executing the batch , it returns an integer array. The problem is , the values in the array are always -2 independent of whether the status is true or false. Im always getting an array of -2(array length is equal to loop) even though sometimes database is upadated and sometimes not updated.