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

Creating table on MSSQL sets varchar and nvarchar column lengths as 1 regardless of UI input #58809

Closed
1 of 2 tasks
EngTurtle opened this issue Sep 19, 2024 · 0 comments · Fixed by #58955
Closed
1 of 2 tasks
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! MS SQL data provider

Comments

@EngTurtle
Copy link

EngTurtle commented Sep 19, 2024

What is the bug or the crash?

Creating a table on a MSSQL connection using the QGIS GUI results in NVARCHAR columns of length 1 instead of set value.

Steps to reproduce the issue

Creating a table on a MSSQL connection using the following input, where Name column is set with length 50
image
Results in the following table after saving, where the Name column has length 1
image

Versions

QGIS version 3.38.2-Grenoble installed via Chocolatey
SQL Server version 15.0.4312.2

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@EngTurtle EngTurtle added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 19, 2024
@elpaso elpaso self-assigned this Oct 3, 2024
elpaso added a commit to elpaso/QGIS that referenced this issue Oct 3, 2024
elpaso added a commit that referenced this issue Oct 3, 2024
elpaso added a commit to elpaso/QGIS that referenced this issue Oct 3, 2024
nyalldawson pushed a commit that referenced this issue Oct 4, 2024
nyalldawson pushed a commit that referenced this issue Oct 25, 2024
nyalldawson pushed a commit that referenced this issue Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! MS SQL data provider
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants