Skip to content

Commit f8b82e6

Browse files
tanbroclaude
andcommitted
debug: add verbose output to DBMS_LOCK grant check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 08be74b commit f8b82e6

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,23 @@ jobs:
154154
uv sync --no-dev --group test
155155
uv pip install mysqlclient aiomysql psycopg2 asyncpg pyodbc aioodbc oracledb
156156
157-
- name: Grant DBMS_LOCK permission to test user
157+
- name: Check and Grant DBMS_LOCK permission
158158
run: |
159+
echo "=== Checking if DBMS_LOCK exists ==="
159160
podman exec oracledb sqlplus -s / as sysdba <<'EOF'
161+
SET PAGESIZE 100
162+
SET LINESIZE 200
160163
ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE;
161164
ALTER SESSION SET CONTAINER=FREEPDB1;
162-
SELECT * FROM all_objects WHERE object_name = 'DBMS_LOCK' AND owner = 'SYS';
165+
PROMPT === Objects named DBMS_LOCK ===
166+
SELECT object_name, object_type, status FROM all_objects WHERE object_name LIKE '%DBMS_LOCK%' AND owner = 'SYS' ORDER BY object_name;
167+
PROMPT === Granting permission ===
163168
GRANT EXECUTE ON SYS.DBMS_LOCK TO test;
164-
SELECT * FROM dba_tab_privs WHERE table_name = 'DBMS_LOCK' AND grantee = 'TEST';
169+
PROMPT === Checking granted permissions ===
170+
SELECT grantee, owner, table_name, privilege FROM dba_tab_privs WHERE table_name = 'DBMS_LOCK' AND grantee = 'TEST';
165171
exit;
166172
EOF
167-
echo "Grant completed"
173+
echo "=== Grant completed ==="
168174
169175
- name: Run tests
170176
shell: bash

0 commit comments

Comments
 (0)