JulienLavocat / JulienLavocat/SpacetimeDB-Admin

Queries for u64 values are not correct.

Open
#20 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
60
Forks
4
PR merge metrics
No merged PRs in 30d

Description

I store a u64 for a player's SteamID in my table.
Running `spacetime sql card "SELECT * FROM players"` gives me:

| steam_id | name | state |
|----------|------|-------|
| 76561198243149168 | "123" | (Offline = ()) |

Running the same in https://stdb-admin.jlavocat.eu/sql I get:

Image

As you can see, the u64 value is off by 2. I imagine this is some weird js stuff, all clients (written in rust) get the correct values from the db, only the admin which I use to inspect the table contents is off. The same issue happens in the Explorer tab of the page.
Logging in the console gives the correct value (probably because it is a string, not a number):

Image

When looking at the network console, I can confirm the value returned by the DB is:

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.