Skip to content

Commit

Permalink
disable write error validaiton
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Sep 6, 2024
1 parent 803d014 commit a598416
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cursor/abstract_cursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

Expand Down

0 comments on commit a598416

Please sign in to comment.