fixed int data type selection based on size #53
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request title
integer data type selection by sizing should be fixed
Conventions
Pull request reason
Fix sql server integer type selection based on go lang int value memory size
User Case Description
sqlserver/sqlserver.go
Line 158 in 3c16210
SQL Server datatype selection based on int value data size is not appropriate. Here is the condition
Golang integers
int8 : 1 byte or 8 bits
int16: 2 bytes or 16 bits
int32: 3 bytes or 32 bits
int64
4 bytes or 64 bits`SQL Server integers equivalent
tinyint : int8
smallint : int16
int : int32
biging : int64
The condition should be
)