Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Fix mssql issue with duplicate columns. #1225

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Neopallium
Copy link

The GetColumns() method for the mssql dialect can return the same
column multiple times if the column is in multiple indexes.

The `GetColumns()` method for the mssql dialect can return the same
column multiple times if the column is in multiple indexes.
@codecov-io
Copy link

codecov-io commented Feb 12, 2019

Codecov Report

Merging #1225 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1225      +/-   ##
=========================================
+ Coverage   57.35%   57.4%   +0.04%     
=========================================
  Files          43      43              
  Lines        7797    7794       -3     
=========================================
+ Hits         4472    4474       +2     
+ Misses       2771    2769       -2     
+ Partials      554     551       -3
Impacted Files Coverage Δ
dialect_mssql.go 74.11% <100%> (+0.1%) ⬆️
xorm.go 68.18% <0%> (-1.52%) ⬇️
session_exist.go 71.42% <0%> (+9.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e410f04...22568ea. Read the comment docs.

@BetaCat0
Copy link
Member

Thanks @Neopallium . Could you write some test cases for these changes?

@lunny lunny added the kind/bug label Oct 2, 2019
mei-rune pushed a commit to mei-rune/xorm that referenced this pull request Apr 19, 2020
fix test

fix test

Fix mssql issue with duplicate columns.

The `GetColumns()` method for the mssql dialect can return the same
column multiple times if the column is in multiple indexes.

Co-authored-by: Robert G. Jakabosky <[email protected]>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1225
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants