I am using mysql-connector-java-5.1.48-bin [B4J 8.90] to connect to a remote MySQL instance.
I am using the REPLACE INTO command to update a table which works fine.
I currently do this using
However, I need to know the number of updated rows as part of this query. So I updated the call to:
which also works correctly.
If I log the resultset it correctly identifies the number of updates.
However there does not appear to be a method to extract the updateCount field.
Could someone help me as to how to extract that updateCount value ??
I am using the REPLACE INTO command to update a table which works fine.
I currently do this using
B4X:
Dim queryString As String = $"REPLACE INTO active VALUES ('${cmap.Get("imei")}','${cmap.Get("ident")}','${cmap.Get("userid")}','${pmap.Get("batv")}','${pmap.Get("bchg")}',CURRENT_TIMESTAMP,'0.0');"$
SQL1.ExecNonQuery(queryString)
However, I need to know the number of updated rows as part of this query. So I updated the call to:
B4X:
dim rs as ResultSet = SQL1.ExecQuery(queryString)
If I log the resultset it correctly identifies the number of updates.
Also the debugger allows me to view the attribute in the result set.(JDBC42ResultSet) Result set representing update count of 2
However there does not appear to be a method to extract the updateCount field.
Could someone help me as to how to extract that updateCount value ??