Skip to content
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

Incorrect display of UUID #17

Closed
archroot opened this issue May 31, 2021 · 1 comment
Closed

Incorrect display of UUID #17

archroot opened this issue May 31, 2021 · 1 comment
Labels
progress:confirmed This is valid question Further information is requested sql Related to sql

Comments

@archroot
Copy link

Incorrect display of UUID

System information:

  • Server: Paper-243 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
  • Proxy: BungeeCord BotFilter v3.8.6-dev
  • Plugin version: OnlineTime 2.0.2

Снимок экрана_2021-05-31_20-42-31

@archroot archroot added the type:bug Something isn't working label May 31, 2021
@seyfahni seyfahni added progress:confirmed This is valid question Further information is requested sql Related to sql and removed type:bug Something isn't working labels May 31, 2021
@seyfahni
Copy link
Owner

seyfahni commented May 31, 2021

This isn't a bug, I'm saving the UUID as binary for performance improvement and storage saving.
To properly display the uuid you can use:

SELECT `id`, HEX(`uuid`) AS `uuid`, `name`, `time` FROM `online_time`;

You can of course also create a VIEW for easier reading.

To select a certain entry by uuid you can do:

SELECT `id`, `name`, `time` FROM `online_time` WHERE `uuid` = UNHEX('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');

@seyfahni seyfahni pinned this issue May 31, 2021
@seyfahni seyfahni closed this as completed Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
progress:confirmed This is valid question Further information is requested sql Related to sql
Projects
None yet
Development

No branches or pull requests

2 participants