-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Biginteger issue on Queries #171
Comments
Wrong ids where? Which part is displaying the wrong IDs? Can you share a screenshot? |
@ForzaSFerrari can you check the network tab for the preview screen, find the body of the entry and see if the number is correct there, you should see it in the JSON content under the "bindings" key. |
Chrome/Opera (API): Binding says 1898010790473457955 Firefox (API and Network Tab): Binding says 1898010790473458000 |
And the value in the database? |
value in the database is 1898010790473457955 |
Can you open a PR with the fix since you can replicate the issue? |
I haven't looked into it now, because I wouldn't know where it come from. But I could try to find it out. |
For me it looks like an issue at the sql formatter package. Not at Laravel Telescope itself. |
@themsaid what is the right package of this? |
I can't seem to replicate this issue and there seems to be no one else reporting the same behaviour. I'm going to close this for now. Please open a PR in case you figured out a way to fix it on your machine so we can verify. Also if anyone else is facing the same issue please ping me. Thanks |
For me it's an error from an external package, but if I don't get no answer here or via mail by you, I will not research further, because I also have to do other things. |
I've just hit this issue as well. When dealing with a large ID telescope is decrementing the reported ID by 1 even though the response is correct. This means the data in telescope cannot be trusted. If casted as a string it works fine. As mentioned above, the entry in the database in Additionally, to recreate this, just set an integer value to |
Update 2 I found the issue. I don't know that this would be a bug or not for Telescope. I suppose Telescope could check if the number is larger than this and throw a warning and cast the number as a string. |
If you have biginteger as types in your database, I've found that you may get wrong id's in your query details in Telescope.
Here are some examples of id's. The upper id is the id, you may have in the url. The lower id is the result in Telescope.
In laravel itself I have no errors.
The text was updated successfully, but these errors were encountered: