Skip to content
Snippets Groups Projects
Commit e1c8bec0 authored by kruthar's avatar kruthar
Browse files

[jdbc] change update field set to start at field0

parent 19e3d270
No related branches found
No related tags found
No related merge requests found
......@@ -283,11 +283,11 @@ public class JdbcDBClient extends DB implements JdbcDBClientConstants {
StringBuilder update = new StringBuilder("UPDATE ");
update.append(updateType.tableName);
update.append(" SET ");
for (int i = 1; i <= updateType.numFields; i++) {
for (int i = 0; i < updateType.numFields; i++) {
update.append(COLUMN_PREFIX);
update.append(i);
update.append("=?");
if (i < updateType.numFields) update.append(", ");
if (i < updateType.numFields - 1) update.append(", ");
}
update.append(" WHERE ");
update.append(PRIMARY_KEY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment