Skip to content

Commit a598416

Browse files
disable write error validaiton
1 parent 803d014 commit a598416

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/cursor/abstract_cursor.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,16 @@ export abstract class AbstractCursor<
223223
this.cursorSession = this.cursorClient.startSession({ owner: this, explicit: false });
224224
}
225225

226+
const enableUtf8Validation = options?.enableUtf8Validation;
227+
let validation;
228+
if (enableUtf8Validation === false) {
229+
validation = { utf8: false };
230+
} else {
231+
validation = { utf8: true };
232+
}
226233
this.deserializationOptions = {
227234
...this.cursorOptions,
228-
validation: parseUtf8ValidationOption(this.cursorOptions)
235+
validation
229236
};
230237
}
231238

0 commit comments

Comments
 (0)