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

- old
+ new

@@ -339,10 +339,16 @@ } return self; } +rubyDuckDBPreparedStatement *get_struct_prepared_statement(VALUE self) { + rubyDuckDBPreparedStatement *ctx; + TypedData_Get_Struct(self, rubyDuckDBPreparedStatement, &prepared_statement_data_type, ctx); + return ctx; +} + void init_duckdb_prepared_statement(void) { cDuckDBPreparedStatement = rb_define_class_under(mDuckDB, "PreparedStatement", rb_cObject); rb_define_alloc_func(cDuckDBPreparedStatement, allocate); @@ -354,10 +360,9 @@ rb_define_method(cDuckDBPreparedStatement, "bind_parameter_index", duckdb_prepared_statement_bind_parameter_index, 1); #ifdef HAVE_DUCKDB_PARAMETER_NAME rb_define_method(cDuckDBPreparedStatement, "parameter_name", duckdb_prepared_statement_parameter_name, 1); #endif #endif - rb_define_method(cDuckDBPreparedStatement, "bind_bool", duckdb_prepared_statement_bind_bool, 2); rb_define_method(cDuckDBPreparedStatement, "bind_int8", duckdb_prepared_statement_bind_int8, 2); rb_define_method(cDuckDBPreparedStatement, "bind_int16", duckdb_prepared_statement_bind_int16, 2); rb_define_method(cDuckDBPreparedStatement, "bind_int32", duckdb_prepared_statement_bind_int32, 2); rb_define_method(cDuckDBPreparedStatement, "bind_int64", duckdb_prepared_statement_bind_int64, 2);