@@ -220,8 +220,8 @@ describe("Client @SERVER_API", function () {
220
220
);
221
221
}); */
222
222
223
- // No support for custom Row (#117)
224
- // TODO: Fix this test
223
+ // Type guessing doesn't allow to distinguish between UUID and TimeUUID
224
+ // TODO: Fix this test, and then remove reduced version below
225
225
/* vit("2.0", "should guess known types", function (done) {
226
226
const client = setupInfo.client;
227
227
const columns =
@@ -240,6 +240,23 @@ describe("Client @SERVER_API", function () {
240
240
insertSelectTest(client, table, columns, values, null, done);
241
241
}); */
242
242
243
+ vit ( "2.0" , "should guess known types -- reduced" , function ( done ) {
244
+ const client = setupInfo . client ;
245
+ const columns =
246
+ "id, text_sample, double_sample, timestamp_sample, blob_sample, list_sample" ;
247
+ // a precision a float32 can represent
248
+ const values = [
249
+ types . Uuid . random ( ) ,
250
+ "text sample 1" ,
251
+ 133 ,
252
+ new Date ( 121212211 ) ,
253
+ utils . allocBufferUnsafe ( 100 ) ,
254
+ [ "one" , "two" ] ,
255
+ ] ;
256
+ // no hint
257
+ insertSelectTest ( client , table , columns , values , null , done ) ;
258
+ } ) ;
259
+
243
260
vit (
244
261
"2.0" ,
245
262
"should use parameter hints as number for simple types" ,
0 commit comments