We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d22aac6 commit 0c3f6f7Copy full SHA for 0c3f6f7
1 file changed
simplesql/src/main/java/com/simplesql/crud/Update.java
@@ -43,10 +43,6 @@ public Update set(String... fields) {
43
*/
44
public Update values(Object... values) {
45
this.values = values;
46
- return this;
47
- }
48
-
49
- public Update where() {
50
int i = 0;
51
StringBuilder stringSet = new StringBuilder();
52
for (String s : fields) {
@@ -57,8 +53,12 @@ public Update where() {
57
53
i++;
58
54
}
59
55
SQLString.append(" SET ")
60
- .append(stringSet)
61
- .append(" WHERE ");
56
+ .append(stringSet);
+ return this;
+ }
+
+ public Update where() {
+ SQLString.append(" WHERE ");
62
return this;
63
64
0 commit comments