Skip to content

fix(#26): avoid NullReferenceException when creating database #27

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 2 commits into from
Dec 18, 2024

Conversation

nvierge-addactis
Copy link
Contributor

Checklist

  • I have read the Contributing Guide
  • I have checked to ensure this does not introduce an unintended breaking changes
  • I have considered appropriate testing for my change

Description

  • Fix System.NullReferenceException in public static void PostgresqlDatabase(this SupportedDatabasesForEnsureDatabase supported, string connectionString, IUpgradeLog logger)
  • Set some methods public so we can provide an IUpgradeLog and a PostgresqlConnectionOptions.

Closes #26

@nvierge-addactis nvierge-addactis mentioned this pull request Dec 18, 2024
droyad
droyad previously approved these changes Dec 18, 2024
@droyad droyad enabled auto-merge (squash) December 18, 2024 09:37
@droyad droyad disabled auto-merge December 18, 2024 09:41
@droyad droyad merged commit 56d8911 into DbUp:release/6.0.0 Dec 18, 2024
1 check passed
droyad added a commit that referenced this pull request Mar 3, 2025
* Add NpgsqlDataSource support to PostgresqlConnectionManager

* Used new GHA workflows

* Updated to dbup-core 6.0 beta, targeted netstandard2 and update Npgsql reference

* Bump to the next beta of dbup-core

* Merge fix

* Removed stray #If

* fix: #680 PostgreSQL statements split implemented (#19)

* fix: #680 PostgreSQL statements split implemented



Co-authored-by: shokurov <[email protected]>

* Updated approval file

---------

Co-authored-by: shokurov <[email protected]>
Co-authored-by: Robert Wagner <[email protected]>

* Update of libs

* File scoped namespaces and primary ctors

* Target `net8` so we can use the latest version of Npgsql (#24)

* Target net8 so we can use the latest version of Npgsql

* Used new APIs

* Added Npgsql licence information (#25)

* fix(#26): avoid NullReferenceException when creating database (#27)

* fix(#26): avoid NullReferenceException when creating database

* Updated approval file

---------

Co-authored-by: Robert Wagner <[email protected]>

* fix: fix delimiter parsing (#28)

* Lowered Connection string printing to debug, resolves #30

---------

Co-authored-by: Sébastien Crocquesel <[email protected]>
Co-authored-by: Campbell Harding-Deason <[email protected]>
Co-authored-by: shokurov <[email protected]>
Co-authored-by: nvierge-addactis <[email protected]>
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