ext/duckdb/result.c in duckdb-0.9.1 vs ext/duckdb/result.c in duckdb-0.9.1.1

- old
+ new

@@ -35,11 +35,10 @@ static VALUE duckdb_result__to_blob(VALUE oDuckDBResult, VALUE row_idx, VALUE col_idx); static VALUE duckdb_result__enum_internal_type(VALUE oDuckDBResult, VALUE col_idx); static VALUE duckdb_result__enum_dictionary_size(VALUE oDuckDBResult, VALUE col_idx); static VALUE duckdb_result__enum_dictionary_value(VALUE oDuckDBResult, VALUE col_idx, VALUE idx); -#ifdef HAVE_DUCKDB_H_GE_V080 static VALUE vector_date(void *vector_data, idx_t row_idx); static VALUE vector_timestamp(void* vector_data, idx_t row_idx); static VALUE vector_interval(void* vector_data, idx_t row_idx); static VALUE vector_blob(void* vector_data, idx_t row_idx); static VALUE vector_varchar(void* vector_data, idx_t row_idx); @@ -50,11 +49,10 @@ static VALUE vector_map(duckdb_logical_type ty, duckdb_vector vector, idx_t row_idx); static VALUE vector_struct(duckdb_logical_type ty, duckdb_vector vector, idx_t row_idx); static VALUE vector_uuid(void* vector_data, idx_t row_idx); static VALUE vector_value(duckdb_vector vector, idx_t row_idx); static VALUE duckdb_result_chunk_each(VALUE oDuckDBResult); -#endif static const rb_data_type_t result_data_type = { "DuckDB/Result", {NULL, deallocate, memsize,}, 0, 0, RUBY_TYPED_FREE_IMMEDIATELY @@ -401,11 +399,10 @@ VALUE create_result(void) { return allocate(cDuckDBResult); } -#ifdef HAVE_DUCKDB_H_GE_V080 static VALUE vector_date(void *vector_data, idx_t row_idx) { duckdb_date_struct date = duckdb_from_date(((duckdb_date *) vector_data)[row_idx]); return rb_funcall(mDuckDBConverter, rb_intern("_to_date"), 3, INT2FIX(date.year), @@ -717,11 +714,10 @@ } duckdb_destroy_data_chunk(&chunk); } return Qnil; } -#endif void init_duckdb_result(void) { cDuckDBResult = rb_define_class_under(mDuckDB, "Result", rb_cObject); rb_define_alloc_func(cDuckDBResult, allocate); @@ -744,9 +740,7 @@ rb_define_private_method(cDuckDBResult, "_to_string_internal", duckdb_result__to_string_internal, 2); rb_define_private_method(cDuckDBResult, "_to_blob", duckdb_result__to_blob, 2); rb_define_private_method(cDuckDBResult, "_enum_internal_type", duckdb_result__enum_internal_type, 1); rb_define_private_method(cDuckDBResult, "_enum_dictionary_size", duckdb_result__enum_dictionary_size, 1); rb_define_private_method(cDuckDBResult, "_enum_dictionary_value", duckdb_result__enum_dictionary_value, 2); -#ifdef HAVE_DUCKDB_H_GE_V080 rb_define_method(cDuckDBResult, "chunk_each", duckdb_result_chunk_each, 0); -#endif }