Skip to content

Commit 6db70a5

Browse files
author
i.hilerio
committed
Modify truncate table get deleted rows name
SVN r64437 |2019-09-04 21:13:23 +0000
1 parent e4d76c9 commit 6db70a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/src/org/labkey/remoteapi/query/TruncateTableResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public TruncateTableResponse(String text, int statusCode, String contentType, JS
4848
* @return The number of rows affected by the command, or null if this property
4949
* was not present in the response.
5050
*/
51-
public Number getDeletedRows()
51+
public Number getDeletedRowCount()
5252
{
5353
return getProperty("deletedRows");
5454
}

java/src/org/labkey/remoteapi/test/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static void truncateTableSuccessTest(Connection cn, String folder) throws
144144
TruncateTableCommand trunc = new TruncateTableCommand("lists", "People");
145145
TruncateTableResponse resp = trunc.execute(cn, folder);
146146

147-
assert resp.getDeletedRows().intValue() == 9;
147+
assert resp.getDeletedRowCount().intValue() == 9;
148148
assert resp.getRows().size() == 0;
149149
}
150150

0 commit comments

Comments
 (0)