Skip to content

fix the create database part of postgresql.py #1072

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

pUrGe12
Copy link
Contributor

@pUrGe12 pUrGe12 commented May 17, 2025

Proposed change

Postgresql connected a database, and if it doesn't exist, it needs to create one before connecting to it (this was tried in the except block). Previous code was to connect to the same non-existent database and that won't work, instead we can connect to the default postgres database and create a new database from there.

Type of change

  • New core framework functionality
  • Bugfix (non-breaking change which fixes an issue)
  • Code refactoring without any functionality changes
  • New or existing module/payload change
  • Localization improvement
  • Dependency upgrade
  • Documentation improvement

Checklist

  • I've followed the contributing guidelines
  • I've run make pre-commit, it didn't generate any changes
  • I've run make test, all tests passed locally

@securestep9 securestep9 added this pull request to the merge queue May 27, 2025
Merged via the queue into OWASP:master with commit 4fd743a May 27, 2025
17 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