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
Then:
PreparedStatement ps = // Prepared statement that invokes set_current_tenant(T arg) function
ps.setArgument(expectedTenant, 1); // Method should be choose based on Java type
J result = Connection.// get value of current tenant by invoking get_current_tenant(T arg)
Assert.assertEquals(expectedTenant, result);
The text was updated successfully, but these errors were encountered:
Add component that should resolve Java type resolver for tenant column type based on regex pattern.
For example:
varchar(255) -> java.lang.String
Integration tests:
Given:
J expectedTenant = // init
When:
Class = component.resolve(T)
Then:
PreparedStatement ps = // Prepared statement that invokes set_current_tenant(T arg) function
ps.setArgument(expectedTenant, 1); // Method should be choose based on Java type
J result = Connection.// get value of current tenant by invoking get_current_tenant(T arg)
Assert.assertEquals(expectedTenant, result);
The text was updated successfully, but these errors were encountered: