final long incrementBy = (Long)PDataType.LONG.toObject(ptr, incrementByExpr.getDataType());
int cacheSizeValue = connection.getQueryServices().getProps().getInt(QueryServices.SEQUENCE_CACHE_SIZE_ATTRIB,QueryServicesOptions.DEFAULT_SEQUENCE_CACHE_SIZE);
if (cacheNode != null) {
Expression cacheSizeExpr = cacheNode.accept(expressionCompiler);
cacheSizeExpr.evaluate(null, ptr);
if (ptr.getLength() != 0 && (!cacheSizeExpr.getDataType().isCoercibleTo(PDataType.INTEGER) || (cacheSizeValue = (Integer)PDataType.INTEGER.toObject(ptr)) < 0)) {
throw new SQLExceptionInfo.Builder(SQLExceptionCode.CACHE_MUST_BE_NON_NEGATIVE_CONSTANT)
.setSchemaName(sequence.getSequenceName().getSchemaName())
.setTableName(sequence.getSequenceName().getTableName()).build().buildException();
}