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

Fix: Add compatibility with Oracle pre-12c #256

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

azratul
Copy link
Contributor

@azratul azratul commented Jul 3, 2024

Description

This pull request addresses the issue where the current schema scraping query does not support Oracle 12c and previous versions. The update modifies the query to be compatible with these versions, ensuring that the plugin can properly connect and retrieve all the necessary database information from Oracle 12c and earlier.

Changes

  • Updated the schema scraping query to support Oracle 12c and previous versions.
  • Ensure to set the global variable db_ui_is_oracle_legacy in Vim (vim.g.db_ui_is_oracle_legacy = 1) to enable the compatibility fix.

Testing

  • Tested the changes on Oracle 12c and Oracle 11g databases.

Related Issues

Additional Notes

Please review and test the changes to ensure compatibility with other database versions and configurations. Feedback and suggestions are welcome.

let legacy = 0

if exists('g:is_oracle_legacy')
let legacy = g:is_oracle_legacy
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this variable to plugin/db_ui.vim, prefix it withdb_ui and default it to 0, similar to other variables in there:

let g:db_ui_is_oracle_legacy = get(g:, 'db_ui_is_oracle_legacy', 0)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requested change has been made

Copy link
Owner

@kristijanhusak kristijanhusak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kristijanhusak kristijanhusak merged commit 696e1ed into kristijanhusak:master Jul 5, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants