Skip to content

Commit 0c3f6f7

Browse files
author
paulo
committed
adicionando .gitignore
1 parent d22aac6 commit 0c3f6f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

simplesql/src/main/java/com/simplesql/crud/Update.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ public Update set(String... fields) {
4343
*/
4444
public Update values(Object... values) {
4545
this.values = values;
46-
return this;
47-
}
48-
49-
public Update where() {
5046
int i = 0;
5147
StringBuilder stringSet = new StringBuilder();
5248
for (String s : fields) {
@@ -57,8 +53,12 @@ public Update where() {
5753
i++;
5854
}
5955
SQLString.append(" SET ")
60-
.append(stringSet)
61-
.append(" WHERE ");
56+
.append(stringSet);
57+
return this;
58+
}
59+
60+
public Update where() {
61+
SQLString.append(" WHERE ");
6262
return this;
6363
}
6464

0 commit comments

Comments
 (0)