1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-03-19 20:57:50 +02:00

6 Commits

Author SHA1 Message Date
Olivier Mengué
87bbc72050 tests/Null{Int,Time}: do not change the value in case of error
Do not touch the existing value in case of error.
No capital on error message.
2018-07-12 15:00:04 +02:00
Olivier Mengué
9119b1dbff tests/Null{Int,Time}: refactor Scan for less lines of code
Single switch for all cases.
Single return for the success case.
2018-07-12 15:00:04 +02:00
Olivier Mengué
f974ac3c0c tests/NullInt: fix Value() to return a valid driver.Value
Value must return int64, not int.
2018-07-12 15:00:04 +02:00
Olivier Mengué
4f574cddfd tests/NullInt: fix Scan from string/[]byte
Do not change the value if Atoi fails
2018-07-12 15:00:04 +02:00
Olivier Mengué
c1f08b2bb1 tests/NullInt.Scan: fix integer conversion from int{8,16,32,64} 2018-07-12 15:00:04 +02:00
gedi
5aa5d01fb9 add test for row builder and NilType based row values 2014-02-14 17:15:06 +02:00