When using database client and fetch method which returns Map<String,Any>, the keys seem to be out of order. Am I doing something wrong here?
The code that fetches the map is
val result = databaseClient
.sql(SELECT_ISSUER_METADATA)
.bind(0, id)
.fetch()
.awaitOne()
The SELECT_ISSUER_METADATA is SELECT * FROM ISSUER_METADATA WHERE issuer = ?
The table contains these columns and values when I ran the example:
As you can see issuer has value soludcommunity.net while authorization_endpoint has the value soludcommunity.net/authorize.
But when I print the map I got from fetch I get this result:
{authorization_endpoint=https://solidcommunity.net, issuer=https://solidcommunity.net/authorize, jwk_uri=https://solidcommunity.net/jwks, registration_endpoint=https://solidcommunity.net/token, token_endpoint=https://solidcommunity.net/register}
Am I missing something simple here(I feel like this)?I don't know how to fix this.
I am using MySql R2dbc drivers.