Skip to content

Commit d2e9094

Browse files
committed
Type guessing - reduced integration tests
See #235
1 parent 01fe667 commit d2e9094

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

test/integration/supported/client-execute-tests.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ describe("Client @SERVER_API", function () {
220220
);
221221
}); */
222222

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
225225
/* vit("2.0", "should guess known types", function (done) {
226226
const client = setupInfo.client;
227227
const columns =
@@ -240,6 +240,23 @@ describe("Client @SERVER_API", function () {
240240
insertSelectTest(client, table, columns, values, null, done);
241241
}); */
242242

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+
243260
vit(
244261
"2.0",
245262
"should use parameter hints as number for simple types",

0 commit comments

Comments
 (0)