Server: The SQL query resulted in unexpected data when the table primary key is of type `uint64`.
jkcs opened this issue · comments
Description of bug
The SQL query resulted in unexpected data when the table primary key is of type uint64
.
Steps to reproduce
CREATE SPACE IF NOT EXISTS myspace
CREATE MODEL IF NOT EXISTS myspace.testmodel(id: uint64, name: string, email: string)
INSERT INTO myspace.testmodel(11111111111111, 'test', 'test')
INSERT INTO myspace.testmodel(22222222222222, 'test', 'test')
INSERT INTO myspace.testmodel(1, 'test1', 'test1')
SELECT * FROM myspace.testmodel WHERE id = 1
SELECT * FROM myspace.testmodel WHERE id = 11
Expected behavior
Meta
- Release tag:
- Branch:
- Commit ID:
- Operating system:
Additional context
This looks interesting. Are you able to reproduce this with the driver or does it only happen with the REPL?
We can then isolate the issue.
@jkcs I've fixed this bug. While this would generally be treated as a security bug, since it was released with a beta version a patch was released that fixes this issue. Can you please try one of the latest binaries and let me know if things look alright?
@ohsayan I just tried it out, and now is working fine 🎉