duckdb 0.5.2-dev1316.0 → 0.5.2-dev1318.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +37700 -37700
- package/src/statement.cpp +1 -2
- package/test/data_type_support.test.js +6 -0
package/src/statement.cpp
CHANGED
|
@@ -225,8 +225,7 @@ static Napi::Value convert_col_val(Napi::Env &env, duckdb::Value dval, duckdb::L
|
|
|
225
225
|
value = object_value;
|
|
226
226
|
} break;
|
|
227
227
|
default:
|
|
228
|
-
Napi::
|
|
229
|
-
return env.Null();
|
|
228
|
+
value = Napi::String::New(env, dval.ToString());
|
|
230
229
|
}
|
|
231
230
|
|
|
232
231
|
return value;
|
|
@@ -188,4 +188,10 @@ describe("data type support", function () {
|
|
|
188
188
|
done();
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
|
+
it("converts unsupported data types to strings", function(done) {
|
|
192
|
+
db.all("SELECT CAST('11:10:10' AS TIME) as time", function(err, rows) {
|
|
193
|
+
assert.equal(rows[0].time, '11:10:10');
|
|
194
|
+
done();
|
|
195
|
+
});
|
|
196
|
+
});
|
|
191
197
|
});
|