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.

Implementing elseif for conversion of Default #1173

Merged
merged 1 commit into from
Dec 11, 2018
Merged

Conversation

chdxD1
Copy link
Contributor

@chdxD1 chdxD1 commented Dec 11, 2018

Before this commit the Default would be reset to 0 every time it is not true. This results in an issue when true is converted to 1 and 1 is not true, resulting in a conversion to 0.

This should also fix go-gitea/gitea#4282.

Before this commit the Default would be reset to 0 every time it is not true. This results in an issue when true is converted to 1 and 1 is not true, resulting in a conversion to 0.

Signed-off-by: Christopher Dziomba <[email protected]>
@lunny lunny added the kind/bug label Dec 11, 2018
@codecov-io
Copy link

Codecov Report

Merging #1173 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1173      +/-   ##
==========================================
- Coverage    54.7%   54.69%   -0.02%     
==========================================
  Files          42       42              
  Lines        7646     7646              
==========================================
- Hits         4183     4182       -1     
  Misses       2935     2935              
- Partials      528      529       +1
Impacted Files Coverage Δ
dialect_mssql.go 0% <0%> (ø) ⬆️
xorm.go 64.61% <0%> (-1.54%) ⬇️

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 fd49db5...c44f085. Read the comment docs.

1 similar comment
@codecov-io
Copy link

codecov-io commented Dec 11, 2018

Codecov Report

Merging #1173 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1173      +/-   ##
==========================================
- Coverage    54.7%   54.69%   -0.02%     
==========================================
  Files          42       42              
  Lines        7646     7646              
==========================================
- Hits         4183     4182       -1     
  Misses       2935     2935              
- Partials      528      529       +1
Impacted Files Coverage Δ
dialect_mssql.go 0% <0%> (ø) ⬆️
xorm.go 64.61% <0%> (-1.54%) ⬇️

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 fd49db5...c44f085. Read the comment docs.

@lunny lunny merged commit 401f4ee into go-xorm:master Dec 11, 2018
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.

None yet

3 participants