Michael MacDonald
ca83e31de6
Mikemacd patch 1 ( #2 )
...
* Update sqlmock.go
Permit prepares to obey MatchExpectationsInOrder flag, allowing prepared statements to be prepared in a different order than they were added to the expectations.
* Update sqlmock_test.go
Add test case for unordered prepared statements.
2017-05-30 15:44:56 -04:00
gedi
18ab7ac1c7
improves error messages, closes #77
2017-04-26 09:56:38 +03:00
gedi
a32ff1cda1
updates travis ci, as tip no longer refers to master
2017-04-16 20:09:25 +03:00
gedi
8fd5411d53
adds more details about changes made to v1.2.0 version
2017-04-16 12:12:12 +03:00
Gediminas Morkevicius
b983233bc0
Merge pull request #68 from DATA-DOG/go1.8
...
Support for go 1.8 SQL features
2017-02-21 17:59:18 +02:00
gedi
372a183d52
adds go1.8 to travis
2017-02-21 17:53:38 +02:00
gedi
a00b6aa80e
asserts ordinal argument position, fixes expected query error message
2017-02-16 22:33:12 +02:00
gedi
53b2cd1534
updates readme and license
2017-02-09 09:26:25 +02:00
gedi
128bf5c539
implements next rows result set support
2017-02-08 17:35:32 +02:00
gedi
42ab7c33d0
implements Pinger (without expectation yet) and prepared stmt Context methods
2017-02-08 15:32:39 +02:00
gedi
6bbe187a1a
closes #60
2017-02-08 15:09:40 +02:00
gedi
cfb2877c66
tests Context sql driver extensions
2017-02-07 15:03:05 +02:00
gedi
965003de80
implements Context based sql driver extensions
2017-02-07 12:20:08 +02:00
gedi
d11f623794
implements named arguments support and adds delay expectation for context deadline simulation
2017-02-06 14:38:57 +02:00
Gediminas Morkevicius
55ecc5a333
Merge pull request #67 from ahmadmuzakki29/master
...
apply stripQuery before assigning query expectation
2017-02-05 21:41:58 +02:00
Ahmad Muzakki
1fd67a1762
- apply stripQuery before assigning query expectation
...
- remove unused function
2017-02-04 18:09:50 +07:00
Gediminas Morkevicius
d24b409866
Merge pull request #65 from ahmadmuzakki29/master
...
Build query before regex
2017-01-15 15:12:39 +02:00
Ahmad Muzakki
9758862a89
build query before regex, mimicking how sql.DB build their query
2017-01-15 18:57:16 +07:00
Gediminas Morkevicius
947ce303a7
Merge pull request #59 from gliptak/rows1
...
Additional test for rows
2016-11-28 09:55:35 +02:00
Gábor Lipták
e4bef44c55
Additional test for rows
2016-11-27 20:14:41 -05:00
Gediminas Morkevicius
8e610725b3
Merge pull request #58 from gliptak/commitclose1
...
Additional tests for Close
2016-11-27 21:11:37 +02:00
Gábor Lipták
1ed8c944b7
Additional tests for Close
2016-11-27 11:10:47 -05:00
Gediminas Morkevicius
5a27ef1f43
Merge pull request #57 from gliptak/prepared1
...
Additional tests for prepare
2016-11-27 13:29:46 +02:00
Gábor Lipták
ab864e894f
Additional tests for prepare
2016-11-26 19:38:05 -05:00
Gediminas Morkevicius
86364abb39
Merge pull request #56 from gliptak/expectations1
...
Aditional tests for rollback and commit
2016-11-26 12:17:07 +02:00
Gábor Lipták
a14a480cc0
Aditional tests for rollback and commit
2016-11-25 12:10:32 -05:00
Gediminas Morkevicius
93b7dd3ffa
Merge pull request #55 from gliptak/drivertest1
...
Tests for driver DSN
2016-11-24 09:16:41 +02:00
Gábor Lipták
2a46c55287
Tests for driver DSN
2016-11-23 17:46:15 -05:00
Gediminas Morkevicius
600aa16d3e
Merge pull request #54 from gliptak/rollbackfail1
...
Implement rollback throw test
2016-11-23 09:16:09 +02:00
Gábor Lipták
c6573954e4
Implement rollback throw test
2016-11-22 19:25:34 -05:00
Gediminas Morkevicius
90f77f1204
Merge pull request #53 from gliptak/codecov1
...
Add codecov.io
2016-11-22 10:03:52 +02:00
Gábor Lipták
4f22433adb
Add codecov.io
2016-11-21 21:34:47 -05:00
gedi
d4cd2ca2ad
closes #50
2016-11-02 14:49:59 +02:00
gedi
05f39e9110
closes #45
2016-07-22 22:26:40 +03:00
Gediminas Morkevicius
f191e86036
Merge pull request #41 from omnicolor/fix-typo
...
Fixed typo (stetement -> statement)
2016-04-14 09:08:51 +03:00
Omni Adams
4e7175497a
Fixed typo (stetement -> statement)
2016-04-13 14:19:21 -05:00
Gediminas Morkevicius
9958e5c69d
Merge pull request #39 from jamiecuthill/master
...
Trigger expectations met when query and args matched
2016-02-26 19:13:42 +00:00
Jamie Cuthill
4689a4afbf
When Exec/Query is expected to error correctly mark expectation as triggered
...
- Fixes regression from issue 37 'fix'
2016-02-26 16:07:19 +00:00
gedi
37302508b4
fix go vet tool reported formatting issues
2016-02-26 14:45:18 +02:00
gedi
11d3eed600
change package url for README consistency with example, closes #34
2016-02-26 14:41:45 +02:00
gedi
b465b1f024
refers to #37
2016-02-26 14:38:04 +02:00
Gediminas Morkevicius
55a0289da5
Merge pull request #38 from jamiecuthill/master
...
Fixes issue with false positive on met expectations
2016-02-26 12:27:59 +00:00
Jamie Cuthill
721ae9b924
Move expectation triggered below error cases.
...
- Issue https://github.com/DATA-DOG/go-sqlmock/issues/37
2016-02-26 11:37:24 +00:00
gedi
3769fed739
add a test for slice argument matching
2016-02-25 15:43:56 +02:00
Gediminas Morkevicius
f071545205
Merge pull request #36 from skriptble/master
...
Fixing incorrect []byte handling in expectation.
2016-02-25 13:42:47 +00:00
Kris Brandow
19a0529399
Fixing incorrect []byte handling in expectation.
...
Fixes the incorrect handling of []byte when comparing an argument
recieved from Exec or Query and the exepected value.
Closes #35
2016-02-25 08:34:10 -05:00
Gediminas Morkevicius
b54b0cd4c8
Merge pull request #32 from DATA-DOG/natural-argument-converters
...
Natural argument converters
2016-02-23 10:03:17 +00:00
gedi
cee8a78569
add 1.6 to travis
2016-02-23 11:57:14 +02:00
gedi
4bb07b88b3
closes #25
2016-02-23 11:47:39 +02:00
gedi
2165444c8d
add AnyArg func to provide any kind of argument matcher
2016-02-23 11:24:34 +02:00