i have this update function .....everything looks perfect in the function,,,,i have no idea why it returns "Update failed" ...it donst show any error...no SQL error or anthing like that...it just dosnt update....how can I trace the error???......HEELLLLPPPP
so over all i wanna know how to trace eerror when executeUpdate() returns false....tanxxxxxxxxx
here is the code...
public boolean updateCustomerData()
{
//here is coonection and set functions and "try and catch"
if (ps.executeUpdate() != 1){
error="Update failed";
}
else{
isSuccess=true;
this.isCustomerDataLoaded = true;
}
}catch(ClassNotFoundException ex){
error=ex.getMessage();
}catch(SQLException ex){
error=ex.getMessage();
}catch (Exception ex){
error=ex.getMessage();
2006-06-27
18:58:27
·
4 answers
·
asked by
zoha
3