Skip to content

sql: unique_rowid() returns and javascript #15721

@petermattis

Description

@petermattis

unique_rowid() returns values that cannot be represented exactly by a number in Javascript. For example, 235191684988928001 is a recent value returned by unique_rowid() but in Javascript that is represented as 235191684988928000 (notice the last digit is different). The precision loss can then foul up Javascript application which temporarily stores the ID and then queries using it.

Reported by @mattiasmak. This is arguably a bug in the NodeJS driver.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions