ext/duckdb/duckdb.c in duckdb-1.0.0.2 vs ext/duckdb/duckdb.c in duckdb-1.1.0.0
- old
+ new
@@ -1,8 +1,10 @@
#include "ruby-duckdb.h"
VALUE mDuckDB;
+VALUE PositiveInfinity;
+VALUE NegativeInfinity;
static VALUE duckdb_s_library_version(VALUE self);
/*
* call-seq:
@@ -17,9 +19,11 @@
}
void
Init_duckdb_native(void) {
mDuckDB = rb_define_module("DuckDB");
+ PositiveInfinity = rb_str_new_literal("infinity");
+ NegativeInfinity = rb_str_new_literal("-infinity");
rb_define_singleton_method(mDuckDB, "library_version", duckdb_s_library_version, 0);
rbduckdb_init_duckdb_error();
rbduckdb_init_duckdb_database();