You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Postgres configuration store and passing metadata via client client.GetConfigurationItem(ctx, "configstore", "orderId2", dapr.WithConfigurationMetadata("version", "1.0.0"))
should build the query SELECT * FROM config_table WHERE KEY IN ($1) AND version = $2
Actual Behavior
Currently the query is SELECT * FROM config_table WHERE KEY IN ($1) AND $2 = $3
which always returns in empty result
Steps to Reproduce the Problem
Create a Postgres configuration store (as described in docs)
Store any configuration with version INSERT INTO config_table (key, value, version, metadata) VALUES ('orderId2', 'value', '1.0.0', null)
Retrieve configuration (as described in docs) and pass version in metadata
Expected Behavior
Using Postgres configuration store and passing metadata via client
client.GetConfigurationItem(ctx, "configstore", "orderId2", dapr.WithConfigurationMetadata("version", "1.0.0"))
should build the query
SELECT * FROM config_table WHERE KEY IN ($1) AND version = $2
Actual Behavior
Currently the query is
SELECT * FROM config_table WHERE KEY IN ($1) AND $2 = $3
which always returns in empty result
Steps to Reproduce the Problem
INSERT INTO config_table (key, value, version, metadata) VALUES ('orderId2', 'value', '1.0.0', null)
Release Note
RELEASE NOTE: FIX Postgres configuration store using metadata key as query parameter
The text was updated successfully, but these errors were encountered: