You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Hi
my english is not good
i hope you can understand my means
source code like bellow
if (!rowsList.isEmpty()){
sqlSourceHelper.setCurrentIndex(
Integer.toString((Integer.parseInt(sqlSourceHelper.getCurrentIndex())+ rowsList.size()))
);
}
In this code,if table has id from 1 to 10 and 20 to 100,we know the rowsList`s size is 90,the currentIndex starts from 1,so the new currentIndex will be 91, that causes we extract id from 92 to 100 again
so we changed code.
if (!rowsList.isEmpty()){
Long max=0l;
for (List list : rowsList) {
if(Long.parseLong(list.get(0).toString())>max) {
max=Long.parseLong(list.get(0).toString());
}
}
sqlSourceHelper.setCurrentIndex(max.toString());
}
we use the changeDate(timestamp) as refer column,replaced id
The text was updated successfully, but these errors were encountered:
Hi
my english is not good
i hope you can understand my means
source code like bellow
if (!rowsList.isEmpty()){
sqlSourceHelper.setCurrentIndex(
Integer.toString((Integer.parseInt(sqlSourceHelper.getCurrentIndex())+ rowsList.size()))
);
}
In this code,if table has id from 1 to 10 and 20 to 100,we know the rowsList`s size is 90,the currentIndex starts from 1,so the new currentIndex will be 91, that causes we extract id from 92 to 100 again
so we changed code.
if (!rowsList.isEmpty()){
Long max=0l;
for (List list : rowsList) {
if(Long.parseLong(list.get(0).toString())>max) {
max=Long.parseLong(list.get(0).toString());
}
}
sqlSourceHelper.setCurrentIndex(max.toString());
}
we use the changeDate(timestamp) as refer column,replaced id
The text was updated successfully, but these errors were encountered: