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

Oracle Queries not considering UI selected schema in query and failing with syntax error #3879

Open
1 task done
scherue2 opened this issue Nov 8, 2024 · 0 comments
Open
1 task done
Labels
BUG Issue type for reporting failure due to bug in functionality

Comments

@scherue2
Copy link

scherue2 commented Nov 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

Below error when not specifying schema name even that is selected from UI:
(cx_Oracle.DatabaseError) ORA-00942: table or view "MYSCHEMA"."MYTABLE" does not exist [SQL: select * from mytable] (Background on this error at: http://sqlalche.me/e/4xp6)

It seems to me that cx_oracle connection attribute "Connection.current_schema" is not properly set when use chooses different schema in UI.

Steps To Reproduce

  1. Create user with access to multiple schemas in Oracle database
  2. User enters HUE with initial schema: "myschema"
  3. User switches to schema "myschema2" via UI -> schema metadata (tables, columns) is correctly refreshed in UI
  4. User executes query for table in "myschema2"
  5. Oracle Error is shown

Logs

No response

Hue version

4.11

@scherue2 scherue2 added the BUG Issue type for reporting failure due to bug in functionality label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Issue type for reporting failure due to bug in functionality
Projects
None yet
Development

No branches or pull requests

1 participant