Commit Graph

1626 Commits

Author SHA1 Message Date
zaneli beb591e642 Fix function name of comment 2019-06-24 20:38:13 +09:00
Jinzhu 01b6601142 Update go.mod 2019-06-13 14:42:55 +08:00
Jinzhu 5acd5e20e6 Remove Debug mode from test code 2019-06-13 12:20:11 +08:00
Jinzhu 835ca6ca93 Update wercker.yml to include mysql 8 2019-06-13 11:48:31 +08:00
Jinzhu ff430cad49 Update tests 2019-06-13 11:21:13 +08:00
Jinzhu 321c636b9d Merge branch 'Momo733-master' 2019-06-11 17:32:55 +08:00
Momo733 781a818390 fix save err when specify a table name
s.New() will clear all search conditions and search value,when I use Table() to set a table name. Then FirstOrCreate() will use struct name as my database table name,so It doesn't work.
2019-06-11 17:30:29 +08:00
Jinzhu 153ce22c99 Test Save with specfied table name 2019-06-11 17:30:14 +08:00
Ruben de Vries c44c6027fb add an override on the DB instance instead of using the global NowFunc. (#2142) 2019-06-11 12:22:21 +08:00
Tyler Stillwater fec06da6a3 Add BeginTx for parity with sql.DB.BeginTx (#2227) 2019-06-11 12:22:21 +08:00
Hylke Visser cf9b85ed90 Don't set primary key's HasDefaultValue to true (#2127) 2019-06-11 12:22:21 +08:00
Adam S Levy f301f86e29 Add RollbackUnlessCommitted() (#2126) 2019-06-11 12:22:21 +08:00
John Barker 280dd011a1 Don't AddError for Rollback on ErrTxDone (#2434) 2019-06-11 12:22:20 +08:00
Miguel Moll 9127f7d86e Handle error when beginning transaction (#2489) 2019-06-11 12:22:20 +08:00
Ruben de Vries 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) 2019-06-10 20:45:42 +08:00
Tyler Stillwater af01854d3e Add BeginTx for parity with sql.DB.BeginTx (#2227) 2019-06-10 20:33:20 +08:00
Hylke Visser ac78f05986 Don't set primary key's HasDefaultValue to true (#2127) 2019-06-10 20:24:05 +08:00
Adam S Levy 44d3060254 Add RollbackUnlessCommitted() (#2126) 2019-06-10 20:19:39 +08:00
John Barker ea12400190 Don't AddError for Rollback on ErrTxDone (#2434) 2019-06-10 20:14:44 +08:00
Miguel Moll 62197e576d Handle error when beginning transaction (#2489) 2019-06-10 20:12:13 +08:00
Emir Beganović 962ba3d7ae
Merge branch 'master' into master 2019-05-08 11:13:47 +04:00
Emir Beganović b7156195f7
Pass logger into Callback{} so that logs are printed consistently (#2435)
Pass logger into Callback{} so that logs are printed consistently
2019-05-08 11:12:19 +04:00
Emir Beganović 746f522518
Merge branch 'master' into feature/use_standard_logger_in_callback_helpers 2019-05-08 10:50:06 +04:00
Emir Beganović 985c3a174e
Remove unused import 2019-05-08 10:49:33 +04:00
Emir Beganović 6c53214a29
Use Print method 2019-05-08 10:49:00 +04:00
Emir Beganović 451c3cca86
Fix drop table error with table options (#2447)
Fix drop table error with table options
2019-05-08 10:44:20 +04:00
Emir Beganović bb3c74467d
Update two more places 2019-05-08 10:26:49 +04:00
Emir Beganovic 9692c599ad Fix drop table error with table options 2019-05-08 10:23:31 +04:00
John Barker 8b127471f1 Pass logger into Callback{} so that logs are printed consistently 2019-05-07 10:42:20 -06:00
Emir Beganović 5c0f6716ad
Fixed nil error when first updates with struct (#2443)
Fixed nil error when first updates with struct
2019-05-05 13:29:28 +04:00
Emir Beganovic 394b3a1818 Fixed nil error when first updates with struct 2019-05-05 13:12:03 +04:00
Jinzhu 206174c932 Change gorm.io links to https 2019-05-05 16:23:52 +08:00
Emir Beganović 11caf9f072
Add test for keeping float precision (#2442)
Add test for keeping float precision
2019-05-05 11:56:49 +04:00
Emir Beganovic abe3fa8631 Run only on MySQL and sqlite 2019-05-05 11:51:05 +04:00
Emir Beganovic 741cd60b1b Add test for keeping float precision 2019-05-05 11:24:26 +04:00
Emir Beganović 0807818e92
Fix typo (#2441)
Fix typo
2019-05-05 10:52:47 +04:00
Emir Beganović 50ec201b91
Fix typo 2019-05-05 10:47:14 +04:00
Jinzhu f9944083ae Add codecov badge 2019-05-05 14:32:23 +08:00
Jinzhu 12c3abcd45 Fix codeconv integration 2019-05-05 14:20:51 +08:00
Emir Beganović 018491a6dd
Merge pull request #2411 from France-ioi/pluck
Remove old elements from the output parameter of Pluck()
2019-05-05 09:58:14 +04:00
Dmitry Zenovich c4f1946a0b
Merge branch 'master' into pluck 2019-05-04 01:30:16 +03:00
Jinzhu b00248862a Enable codecov 2019-05-02 22:49:30 +08:00
Dmitry Zenovich 483c2ef521 Merge branch 'master' into pluck 2019-04-30 17:28:56 +03:00
Emir Beganović 2cd73627bd
Apply gorm:query_option in Count() (#2410)
Apply gorm:query_option in Count()
2019-04-30 17:47:00 +04:00
Emir Beganović e617218f79
Merge branch 'master' into count 2019-04-30 12:24:53 +04:00
Emir Beganović 87613cc115
Handle syntax to specify an index prefix length (#2399)
Handle syntax to specify an index prefix length
2019-04-30 12:19:27 +04:00
Emir Beganović 8e6c96610d
Merge branch 'master' into count 2019-04-30 12:14:14 +04:00
Emir Beganović 4ddfb3b49c
Merge branch 'master' into pluck 2019-04-30 12:13:31 +04:00
Emir Beganović 95d3eca49c
Merge branch 'master' into mysql-index-prefix-length 2019-04-30 12:13:23 +04:00
Emir Beganović 29cb2a42d2
Update dependencies (#2429)
Update dependencies
2019-04-30 12:07:43 +04:00