Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB2 for i: Simple select with empty ResultSet locks table #161

Open
bashdi opened this issue Sep 3, 2021 · 1 comment
Open

DB2 for i: Simple select with empty ResultSet locks table #161

bashdi opened this issue Sep 3, 2021 · 1 comment

Comments

@bashdi
Copy link

bashdi commented Sep 3, 2021

GoClient OS: Windows and Linux, both 64bit
ODBC Driver: iSeries Access ODBC Driver
DB: DB2 for i, IBMi v7.3
GoVersion: 1.13

Problem:
A simple select which returns an empty resultSet leaves a lock on the table.
CRUD operations are still possible but OS400 file operation reports that the file is locked.

System reports a SHRRD-lock:

Shared for read (*SHRRD). The object can be shared with another job if the user does not request exclusive use of the object. That is, another user can request an exclusive-allow-read, shared-for-update, shared-for-read, or shared-no-update lock state.

@alexbrainman
Copy link
Owner

Sorry @bashdi I cannot help you here.

I know nothing about OS400, DB2 and IBM ODBC Driver. You would have to ask their support instead.

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants