Commit 934a190
authored
Don't panic on indexed int64 fields (#23)
* Stop all db instances after tests (go-mgo#462)
If all tests pass, the builds for mongo earlier than 2.6 are still failing.
Running a clean up fixes the issue.
* fixing int64 type failing when getting indexes and trying to type them
* requested changes relating to case statement and panic
* Update README.md to credit @mapete94.
* tests: ensure indexed int64 fields do not cause a panic in Indexes()
See:
* #23
* https://github.com/go-mgo/mgo/issues/475
* go-mgo#4761 parent 1f4c10f commit 934a190
3 files changed
+42
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
| 1662 | + | |
1662 | 1663 | | |
1663 | | - | |
1664 | | - | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
1665 | 1670 | | |
1666 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1667 | 1679 | | |
| 1680 | + | |
1668 | 1681 | | |
1669 | 1682 | | |
1670 | 1683 | | |
| |||
1673 | 1686 | | |
1674 | 1687 | | |
1675 | 1688 | | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | 1689 | | |
1681 | 1690 | | |
1682 | 1691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments