surrealdb / surrealdb.js

SurrealDB SDK for JavaScript
https://surrealdb.com
Apache License 2.0
271 stars 46 forks source link

number-looking like string should be escaped #282

Closed kearfy closed 3 weeks ago

kearfy commented 3 weeks ago

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

281

What does this change do?

When the ident is a string, we will check if it can be parsed as an integer. If that is the case, it will be escaped

What is your testing strategy?

Added a test

Is this related to any issues?

Fixes #281

Have you read the Contributing Guidelines?