Skip to content

Conversation

@jyemin
Copy link
Collaborator

@jyemin jyemin commented Mar 26, 2025


package com.mongodb.hibernate.jdbc;

class MongoParameterRecognizer {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adopted from JsonScanner in Java driver.

builder.append(quoteCharacter);
while (i < json.length()) {
char c = json.charAt(i++);
if (c == '\\') {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't include explicit support for escapes like \uFEBA. It will still work as is so long as the string is not malformed, but could add back what is in JsonScanner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants