[MDEV-10289] update statement causes table row to partially update Created: 2016-06-26 Updated: 2016-07-03 Resolved: 2016-07-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update |
| Affects Version/s: | 5.5.47-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Amin Ahmad | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 14.04.4 LTS |
||
| Description |
|
Running from a Java 8 environment, I execute a SQL update against a table (definition given below). Most of the time, the row updates correctly. But sporadically (10%, but sometimes as high as 70% of the time), only some of the columns in the row update. First, here is the update statement (Java prepared statement syntax):
The table definition is given below. The location column always updates. However, dt_comp (which isn't even set by my program, but rather uses the built-in NOW() function) and status will sporadically fail to update as indicated previously. I've tried all manner of fiddling with auto-commit settings. I tried removing column dt_comp from the update query, but then, as before, status would sporadically fail to update. As far as I can tell, this is a (serious) issue on the server side.
|
| Comments |
| Comment by Elena Stepanova [ 2016-06-29 ] | ||
|
Which connector are you using? I assume if the problem happens 10% of the time, it's fairly easy to reproduce. Please do the following.
Thanks. | ||
| Comment by Amin Ahmad [ 2016-07-01 ] | ||
|
My apologies. By turning on the general log file, I was able to determine that the problem was an actually an error in my application logic, caused when a separate process updated the same row out-of-sequence.
{{$ md5sum mariadb-java-client-1.4.3.jar |