Commit Graph

2483 Commits

Author SHA1 Message Date
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
Emir Beganovic 8931d8a7c3 Update dependencies 2019-04-30 11:59:39 +04:00
Emir Beganović 645f3f327e
Update to latest go-mssqldb (#2428)
Update to latest go-mssqldb
2019-04-30 11:20:05 +04:00
Emir Beganovic d9cfa3cb12 Update to latest go-mssqldb 2019-04-30 11:12:47 +04:00
zaneli 09a868b381 Handle syntax to specify an index prefix length 2019-04-20 01:04:23 +09:00
Dmitry Zenovich adc8e9b706 apply gorm:query_option in Count() 2019-04-19 14:48:52 +03:00
Dmitry Zenovich 8d1e6bc0f8 remove old elements from the output parameter of Pluck() 2019-04-19 14:41:30 +03:00
Shunsuke Otani 7bc3561503 Don't set NULL if timestamp column is Primary Key (#2332) 2019-04-14 21:11:29 +08:00
Emir Beganović e3987fd4b8
Merge pull request #2396 from emirb/fix-singulartable-race-condition
Fix SingularTable race condition
2019-04-14 12:53:45 +04:00
Emir Beganovic ef9d2070bb Run tests with race detector 2019-04-14 12:46:05 +04:00
Emir Beganovic cd0f3ae41a Run tests with race detector 2019-04-14 12:41:23 +04:00
Emir Beganovic 96d52f25b0 Use RWMutex 2019-04-14 12:41:14 +04:00
Emir Beganovic b923e78e81 Verbose go get output 2019-04-14 12:30:11 +04:00
Emir Beganovic b4927348ae gofmt 2019-04-14 12:30:11 +04:00
Emir Beganovic 59594877da Fix unsafe concurrent SingularTable method call 2019-04-14 12:30:11 +04:00
Emir Beganović 9df293e681
Merge pull request #2324 from xwjdsh/bugfix/having-on-count
fix the case that using Having on Count
2019-04-14 11:40:45 +04:00
Emir Beganović 3e240d1fef
Merge branch 'master' into bugfix/having-on-count 2019-04-14 10:50:05 +04:00
Emir Beganović 2b88a805cf
Merge pull request #2385 from emirb/feature/cleanup-go-mod
Cleanup go.mod
2019-04-14 10:48:51 +04:00
Emir Beganovic da037b0454 Cleanup go.mod 2019-04-14 10:43:59 +04:00
Momo733 1c62bf1e57
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-04-13 14:23:35 +08:00
Emir Beganović efcabc8be3
Merge pull request #2330 from xwjdsh/bugfix/return-empty-slice-many2many
Return empty slice for many2many if no asscociation was found
2019-04-11 09:31:25 +02:00
Emir Beganović 814535d96c
Merge branch 'master' into bugfix/having-on-count 2019-04-11 09:29:59 +02:00
Emir Beganović 3819d1d218
Merge branch 'master' into bugfix/return-empty-slice-many2many 2019-04-11 09:25:55 +02:00
Emir Beganović fdd41cf0b0
Merge pull request #2331 from xwjdsh/bugfix/fix-many2many-table-name
fix the table name of many2many
2019-04-11 08:14:42 +02:00
Emir Beganović cecf452d44
Merge branch 'master' into bugfix/fix-many2many-table-name 2019-04-11 08:04:39 +02:00
Jony4 071b657418 fix TagSettings' map has "":"" value (#2372) 2019-04-05 08:00:48 +08:00
JUN JIE NAN bc5d3f07a8 Removed the deps on uuid and appengine (#2354)
gofrs/uuid was used in testing only, and go module count testing
depends in. This patch removed the gofrs/uuid depends, and appengine
as well.
2019-04-05 07:59:02 +08:00
Wendell Sun 14e0507fd2 fix the table name of many2many 2019-03-14 12:35:57 +08:00
Wendell Sun 2fb2c0d3b2 return empty slice for many2many if no asscociation was found 2019-03-14 02:33:42 +08:00
Wendell Sun 26e8799a19 fix the case that using Having on Count 2019-03-11 21:16:50 +08:00
Ali Koyuncu 8b07437717 add mysql insert modifiers (#2269) 2019-03-10 20:17:21 +08:00
kuangzhiqiang d239c4cab8 error log show trace file (#2296) 2019-03-10 20:03:55 +08:00
haoc7 c721a198a7 create table add column comment (#2298) 2019-03-10 20:01:57 +08:00
Jinzhu d7ef7871a4 Fix tests 2019-03-10 19:33:49 +08:00
Jinzhu f3a0fc1566 Fix go.mod 2019-03-10 19:33:23 +08:00
Satoshi Inoue 4b13e079fc go modules (#2279) 2019-03-10 07:29:21 +08:00
Jinzhu 906799fef2 Better log output for uint* 2019-02-10 15:39:40 +08:00
aixiaoxiang 8494ecdc98 Better log output int8, int, int16, int32, int64, float32, float64, bool. (#2258)
* Better log output int, int16, int32, int64, int8, float32, float64.

* Better log output bool
2019-02-10 15:37:39 +08:00
蜻蜓特派员 9f1a7f5351 optimize getColumnAsArray (#2196) 2019-01-02 21:32:08 +08:00
Brent Hughes 8316f94b72 Fix Panic in test scenerio (#2131)
I have found that there are times when testing that if I did not create the database through Open() it will not have the parent set and cause a panic when it hits this code path.
2019-01-02 21:28:46 +08:00
Edgar Fournival a6382da485 Do not set CreatedAt if blank during Save (#2207) 2019-01-02 21:28:02 +08:00
David Zhang e2cfd6be3b LintFix: Make receiver name of structField consistent (#2164)
* Make receiver name of structField consistent

* Change s to sf
2019-01-02 21:27:17 +08:00
李鹏 ac6c89ec0c search不需要再clone,dbClone内的search已经是一个全新的了 (#2179) 2019-01-02 21:25:37 +08:00
Zed 447d578628 amended comments in error.go for clarity and grammar; for more polish when using IDEs (e.g. VSCODE) that show comments as help text (#2182) 2019-01-02 21:23:43 +08:00