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/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::Error::New(env, "Data type is not supported " + dval.type().ToString()).ThrowAsJavaScriptException();
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
  });