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 Dec 30, 2020. It is now read-only.
When calling method com.github.adejanovski.cassandra.jdbc.CassandraResultSet#getTimestamp(int, java.util.Calendar) I get a CodecNotFoundException.
This error is caused because this method delegates to com.github.adejanovski.cassandra.jdbc.CassandraResultSet#getTimestamp(int) passing a wrong value in the index parameter.
public Timestamp getTimestamp(int index) throws SQLException {
this.checkIndex(index);
java.util.Date date = this.currentRow.getTimestamp(index - 1);
return date == null?null:new Timestamp(this.currentRow.getTimestamp(index - 1).getTime());
}
public Timestamp getTimestamp(int index, Calendar calendar) throws SQLException {
this.checkIndex(index);
java.util.Date date = this.currentRow.getTimestamp(index - 1);
return date == null?null:this.getTimestamp(index - 1);
}
If the method getTimestamp(int, java.util.Calendar) receives 2 in the index param, it would then call getTimestamp(int) with index - 1. This causes the call to this.currentRow.getTimestamp(index - 1) being done over the previous column, not the current one.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When calling method
com.github.adejanovski.cassandra.jdbc.CassandraResultSet#getTimestamp(int, java.util.Calendar)
I get aCodecNotFoundException
.This error is caused because this method delegates to
com.github.adejanovski.cassandra.jdbc.CassandraResultSet#getTimestamp(int)
passing a wrong value in theindex
parameter.If the method
getTimestamp(int, java.util.Calendar)
receives 2 in theindex
param, it would then callgetTimestamp(int)
withindex - 1
. This causes the call tothis.currentRow.getTimestamp(index - 1)
being done over the previous column, not the current one.The text was updated successfully, but these errors were encountered: