From a598416870939f20cc776968534000ed11d5cbbb Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Fri, 6 Sep 2024 09:52:01 -0600 Subject: [PATCH] disable write error validaiton --- src/cursor/abstract_cursor.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cursor/abstract_cursor.ts b/src/cursor/abstract_cursor.ts index eab9f55ae6..c84e314693 100644 --- a/src/cursor/abstract_cursor.ts +++ b/src/cursor/abstract_cursor.ts @@ -223,9 +223,16 @@ export abstract class AbstractCursor< this.cursorSession = this.cursorClient.startSession({ owner: this, explicit: false }); } + const enableUtf8Validation = options?.enableUtf8Validation; + let validation; + if (enableUtf8Validation === false) { + validation = { utf8: false }; + } else { + validation = { utf8: true }; + } this.deserializationOptions = { ...this.cursorOptions, - validation: parseUtf8ValidationOption(this.cursorOptions) + validation }; }