1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2024-11-21 17:17:08 +02:00
Commit Graph

249 Commits

Author SHA1 Message Date
Neenad Ingole
63e2ff0afc
Merge pull request #340 from DATA-DOG/feature/316
Add WithTXOption expectation to ExpectBegin
2024-09-11 12:51:38 +02:00
Neenad Ingole
49e34f68ea
Merge pull request #314 from chrisirhc/patch-1
WIP: Fix WillReturnRows(nil) in expectations_go18.go
2024-08-13 22:53:20 +02:00
Neenad Ingole
4a27a756c1
Add WithTXOption expectation to ExpectBegin 2024-08-13 22:50:39 +02:00
Neenad Ingole
f3575cd527
add missing closing curly brace 2024-08-12 21:02:09 +02:00
Neenad Ingole
52e994a59c
Merge branch 'master' into patch-1 2024-08-12 20:42:40 +02:00
Neenad Ingole
645bbfbb7d
Add test for WillReturnRows function returns Nil 2024-08-12 20:36:12 +02:00
Diego Augusto Molina
6bed17cdbe
Merge pull request #307 from Woody1193/master
Added SqlMock type to allow for options to be sent to function that creates the sqlmock
2024-06-08 23:02:59 -03:00
Gediminas Morkevicius
662222463e
Merge pull request #333 from sfc-gh-tvidyasankar/patch-1
fix bug/334 when checking empty expectedQuery with actual query
2024-04-03 14:17:47 +03:00
sfc-gh-tvidyasankar
f53e637e42 adding a test case to support empty expectedSQL check 2024-04-02 14:35:59 -07:00
THOTHADRI RAJESH VIDYASANKAR
faba995e99
Update query.go 2024-04-02 13:56:51 -07:00
THOTHADRI RAJESH VIDYASANKAR
30283daf08
Update query.go 2024-04-02 13:43:23 -07:00
Gediminas Morkevicius
108200d928
Create FUNDING.yml
any contributor and maintainer can link their user for patreon sponsorship
2024-01-15 12:28:33 +02:00
gh | filikos
13767dc13a
Merge pull request #329 from IvoGoman/optionalNoArgs
fix: make no argument passed validation opt-in
2024-01-06 22:33:25 +01:00
Ivo Gosemann
a6a27b71b9
fix: make no argument passed validation opt-in 2023-12-11 17:33:56 +01:00
Jessie A. Morris
b2d135c5e4
Merge pull request #326 from co60ca/master
Modify: existing panic in AddRow to give a hint to the issue
2023-10-19 16:22:07 -06:00
Mae Kennedy
e4270300ef Modify: existing panic in AddRow to give a hint to the issue 2023-10-19 17:24:06 +00:00
Jessie A. Morris
b2f0b45ee8
Merge pull request #318 from IvoGoman/fix/nilonstringpointer
CSVColParser: correctly set nil values in Rows
2023-08-10 10:05:53 -06:00
IvoGoman
4a9308e2e8
Update rows_test.go
Co-authored-by: Jessie A. Morris <jessie@jessieamorris.com>
2023-08-09 23:43:51 +02:00
Ivo Gosemann
fd971def42 CSVColParser: correctly set nil values in Rows 2023-08-09 17:19:35 +02:00
wangxiaolei
3476f31d8f
Merge pull request #315 from IvoGoman/fix/invalidcsvstring
fixes csv parse errors being silently ignored
2023-05-10 21:41:46 +08:00
Ivo Gosemann
a1ad26d110 fixes csv parse errors being silently ignored 2023-05-05 00:10:07 +02:00
Chris Chua
44e635fc27
Update expectations_go18.go to accept WillReturnRows(nil)
The addition of the resultset logic caused a nil pointer dereference panic whenever nil is used as an input.
2023-04-04 15:09:22 +08:00
Woody1193
a04eaa2c39
Added SqlMock type to allow for options to be sent to function that creates the sqlmock 2022-12-22 16:39:33 +09:00
wangxiaolei
44e746a20e
Merge pull request #295 from IvoGoman/fix-args-passed-not-exp
Fix args passed not exp
2022-08-19 23:24:26 +08:00
Ivo Gosemann
7c9a431ac4 Adds fix to before go 1.8 2022-08-01 11:07:26 +02:00
Ivo Gosemann
37b1bab1c0 Fixes expectations no arg exp but act args passed 2022-08-01 10:43:22 +02:00
Ghvst Code
fd316ea512
Merge pull request #289 from DATA-DOG/chore/issue-template
[Chore]: Add Issue Template
2022-06-24 21:18:47 +01:00
Ghvstcode
33a3e3a1b4 add issue template 2022-06-24 21:14:31 +01:00
Jessie A. Morris
f46c9e9974
Merge pull request #284 from col3name/master
Fix package reference in time example in readme.
2022-06-23 09:48:47 -06:00
bearname
742d0bc5c8
fix package 2022-02-07 15:03:11 +03:00
Gediminas Morkevicius
699dcdfa20
Merge pull request #279 from gliptak/travis1
Add Go 1.16 and 1.17 to Travis
2021-12-01 11:41:00 +02:00
Gábor Lipták
fc9f7daa31
Add Go 1.16 and 1.17 to Travis
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2021-11-17 21:34:00 -05:00
Ajitem Sahasrabuddhe
5b901db53a
Merge pull request #263 from DATA-DOG/add-multi-rows-support
Add Multi Row Support
2021-10-30 13:32:46 +05:30
Ajitem Sahasrabuddhe
4d55f937d0
fix go vet error 2021-05-30 13:21:28 +05:30
Ajitem Sahasrabuddhe
caefcfd920
support go 1.15
go versions 1.14 and below are unsupported as per https://golang.org/doc/devel/release#policy and hence the library does not support them either
2021-05-30 13:19:48 +05:30
Ajitem Sahasrabuddhe
2df2d8867c
add AddRows function to allow adding multiple rows 2021-05-30 13:15:50 +05:30
Ajitem Sahasrabuddhe
35c0d3c10b
add dependency to go.mod 2021-05-30 13:15:32 +05:30
Gediminas Morkevicius
07eed2a098
Merge pull request #249 from maguro/magurl/fix-exepectexec-stringer
Fix ExpectedExec Stringer implementation
2021-01-16 11:40:58 +02:00
Alan D. Cabrera
ad48e464a0 Fix ExpectedExec Stringer implementation
Sometimes the result is incorrectly set, so the cast that takes place in
the String() method returns nil.
2021-01-15 07:02:35 -08:00
ashhadsheikh
c35a79d518 Update code sample 2020-11-02 20:14:57 +05:30
koki
f920cc853b
Merge pull request #234 from gold-kou/feature/fix_travis_go1.15
Add go 1.15 in travis
2020-09-09 08:47:31 +09:00
koki.hatano
8e6be87ade Add go 1.15 in travis 2020-09-08 08:39:30 +09:00
Gediminas Morkevicius
b8a63d3edf
Merge pull request #231 from bonitoo-io/pr-152-again
Add Column Metadata
2020-06-28 18:11:42 +03:00
Ales Pour
3b533ba431 Add Column Metadata #152 2020-06-22 22:26:35 +02:00
gedi
7c0bc43a68
looking for maintainers note 2020-06-21 16:53:00 +03:00
Gediminas Morkevicius
3b99664e4f
Merge pull request #225 from Pawan-Bishnoi/fix_readme
Readme: build error in sample code
2020-05-13 00:11:44 +03:00
Pawan-Bishnoi
5d9cd27675
Readme: build error in test code
err redeclared
2020-05-12 11:39:27 +05:30
Gediminas Morkevicius
210237807c
Merge pull request #223 from gliptak/patch-1
Add Go 1.14 to Travis
2020-04-30 22:56:40 +03:00
Gábor Lipták
cb64891ad7
Add Go 1.14 to Travis 2020-04-29 16:56:15 -04:00
Gediminas Morkevicius
7d7fc89ac4
Merge pull request #216 from gliptak/gomod1
Remove 1.12 minimum Go version from go.mod
2020-01-25 09:47:15 +02:00