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

use valid 'IS' operator for sqlserver dialect, fixes #239 #240

Merged
merged 4 commits into from
Mar 5, 2021
Merged

use valid 'IS' operator for sqlserver dialect, fixes #239 #240

merged 4 commits into from
Mar 5, 2021

Conversation

vlanse
Copy link
Contributor

@vlanse vlanse commented Nov 8, 2020

my proposal for fixing #239, new side effect is that explicit error will be returned when trying to construct query with IS / IS NOT operator other than for NULL value as RHS

Also, seems like support of boolean data type is a common "problem", AFAIK Oracle also does not have support for boolean, so explicit specification of it on dialect level looks good.

second commit is about handling panics in WithTx. It is not very uncommon situation when panic occurs inside for example REST handler for some reason. In this case current implementation will end up with "stuck" transaction which could prevent another transactions from normal operation.

@codecov
Copy link

codecov bot commented Nov 8, 2020

Codecov Report

Merging #240 (4812b9f) into master (865b53c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #240      +/-   ##
==========================================
+ Coverage   96.67%   96.68%   +0.01%     
==========================================
  Files          60       60              
  Lines        3278     3292      +14     
==========================================
+ Hits         3169     3183      +14     
  Misses         94       94              
  Partials       15       15              
Impacted Files Coverage Δ
database.go 92.92% <100.00%> (+0.39%) ⬆️
dialect/sqlserver/sqlserver.go 100.00% <100.00%> (ø)
sqlgen/expression_sql_generator.go 100.00% <100.00%> (ø)
sqlgen/sql_dialect_options.go 100.00% <100.00%> (ø)

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 865b53c...4812b9f. Read the comment docs.

@vlanse
Copy link
Contributor Author

vlanse commented Nov 24, 2020

@doug-martin any chance to merge this?

@doug-martin doug-martin merged commit ca5b481 into doug-martin:master Mar 5, 2021
@doug-martin doug-martin mentioned this pull request Mar 5, 2021
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