Exposed icon indicating copy to clipboard operation
Exposed copied to clipboard

UUID handling broken, different output between DAO & DSL

Open jonasborn opened this issue 2 years ago • 2 comments

Looks like there is a failure in UUID handling between DAO and DSL, probably related to #1467

image image

Ubuntu Ubuntu 20.04.4 LTS x64 10.4.21-MariaDB - Source distribution Protokoll-Version: 10 openjdk version "11.0.12" 2021-07-20 LTS Kotlin version 1.6.21-release-334 (JRE 11.0.12+7-LTS)

using

exposed-core 0.38.2 exposed-jdbc 0.38.2 exposed-dao 0.38.2

Currently not sure, which UUID is the right one, will add a comment soon.

jonasborn avatar Jun 17 '22 17:06 jonasborn

image

Looks like c794e160-35ae-40b9-8c6b-8c1c7b71fd48 is the original I've added using DSL before.

jonasborn avatar Jun 17 '22 17:06 jonasborn

Looks like your first select queries Device table, not User table as the second one.

That's because in your entity definition you point to the wrong table. Should be UUIDEntityClass<User>(UserTable)

AlexeySoshin avatar Aug 14 '22 16:08 AlexeySoshin

Confirming that the printed UUID are equivalent after the proposed adjustment above. Please reopen this issue if the problem requires more answers.

bog-walk avatar May 09 '23 17:05 bog-walk