loopbackio / loopback-connector-db2

LoopBack Connector for IBM DB/2
Other
17 stars 14 forks source link

Loopback (DB2) - Can not create an instance of PersistedModel that uses a schema other than the userid #151

Closed steven-ponessa closed 3 years ago

steven-ponessa commented 4 years ago

Steps to reproduce

I am trying to define a model that is based on the PersistedModel to access a table in DB2, call it MY_SCHEMA.MY_TABLE.

I created the model MY_TABLE, based on PersistedModel, with a Data Source (datasources.json) where the definition includes the attribute "schema": "MY_SCHEMA". The data source also contains the userid my_userid, used for the connection.

Current Behavior

When I try to call the API for this model, it tries to access the table my_userid.MY_TABLE.

Expected Behavior

It should access MY_SCHEMA.MY_TABLE.

Link to reproduction sandbox

The repo containing this is a test repository that contains database connection information, I can not make it generally available.

Additional information

Related Issues

See Reporting Issues for more tips on writing good issues

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.