Exposed
Exposed copied to clipboard
UUID handling broken, different output between DAO & DSL
Looks like there is a failure in UUID handling between DAO and DSL, probably related to #1467
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.
Looks like c794e160-35ae-40b9-8c6b-8c1c7b71fd48 is the original I've added using DSL before.
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)
Confirming that the printed UUID are equivalent after the proposed adjustment above. Please reopen this issue if the problem requires more answers.