ext/duckdb/result.c in duckdb-0.9.1.1 vs ext/duckdb/result.c in duckdb-0.9.1.2
- old
+ new
@@ -227,11 +227,11 @@
idx_t col_idx;
idx_t column_count = duckdb_column_count(&(ctx->result));
VALUE ary = rb_ary_new2(column_count);
for(col_idx = 0; col_idx < column_count; col_idx++) {
- VALUE column = create_column(oDuckDBResult, col_idx);
+ VALUE column = rbduckdb_create_column(oDuckDBResult, col_idx);
rb_ary_store(ary, col_idx, column);
}
return ary;
}
@@ -395,11 +395,11 @@
}
duckdb_destroy_logical_type(&logical_type);
return value;
}
-VALUE create_result(void) {
+VALUE rbduckdb_create_result(void) {
return allocate(cDuckDBResult);
}
static VALUE vector_date(void *vector_data, idx_t row_idx) {
duckdb_date_struct date = duckdb_from_date(((duckdb_date *) vector_data)[row_idx]);
@@ -715,10 +715,10 @@
duckdb_destroy_data_chunk(&chunk);
}
return Qnil;
}
-void init_duckdb_result(void) {
+void rbduckdb_init_duckdb_result(void) {
cDuckDBResult = rb_define_class_under(mDuckDB, "Result", rb_cObject);
rb_define_alloc_func(cDuckDBResult, allocate);
rb_define_method(cDuckDBResult, "column_count", duckdb_result_column_count, 0);
rb_define_method(cDuckDBResult, "row_count", duckdb_result_row_count, 0);