SQLProvider
SQLProvider copied to clipboard
When row is created, auto_increment column is created as UInt64
trafficstars
Description
When row is created by Created(columnOne,columnTwo...) , object mapping to auto_increment column is made as UInt64 even if the column's type is Int.
Repro steps
- Create Table containing auto_increment column typed INT in MariaDB
- Create row by
Create(columnOne,columnTwo,...)() - Get the object of the column from
ColumnValuesand callGetType()method or callMapTo<>and get type error.
Expected behavior
Int32 or int is returned
Actual behavior
UInt64 is returned
Known workarounds
Type of row.auto_incremented_column is int.
Type of the object in row gotten from query{} is also int.
It occurs when row is created by Create() .
Related information
- MariaDB 10.3.17
- Ubuntu19.04
- dotnet core 2.2.401
- SQLProvider 1.1.68