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 MSSQL database user bug #168

Merged
merged 5 commits into from
Jan 11, 2024
Merged

Conversation

arielsepton
Copy link
Member

Fix for Issue #158

Description

This pull request addresses the issue reported in #158 , where creating an MSSQL user was failing due to the error "cannot create user: mssql: You can only create a user with a password in a contained database."

Changes Made

  • Fixed the issue where creating an MSSQL user was failing due to the error "cannot create user: mssql: You can only create a user with a password in a contained database."
  • Split the login and user creation to resolve the bug.
  • Checked for active sessions and killed them before dropping the user and login during user deletion.

Related Issues

Fixes #158

arielsepton and others added 5 commits December 29, 2023 14:51
Signed-off-by: arielsepton <arielsepton1@gmail.com>
Signed-off-by: arielsepton <arielsepton1@gmail.com>
Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>
Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>
Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>
Copy link
Member

@Duologic Duologic left a comment

Choose a reason for hiding this comment

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

LGTM

@Duologic Duologic merged commit 06461d7 into crossplane-contrib:master Jan 11, 2024
7 checks passed
mariusziemke pushed a commit to edudip/provider-sql that referenced this pull request Jun 10, 2024
* fix mssql user bug

Signed-off-by: arielsepton <arielsepton1@gmail.com>

* revert test file

Signed-off-by: arielsepton <arielsepton1@gmail.com>

* fix test

Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>

* gofmt -s -w

Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>

* remove redundent print and edd better error messages

Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>

---------

Signed-off-by: arielsepton <arielsepton1@gmail.com>
Signed-off-by: arielsepton <64063409+arielsepton@users.noreply.github.com>
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.

MSSQL database user
2 participants