Commit Graph

2612 Commits

Author SHA1 Message Date
Jinzhu 7aab3ae861 Merge pull request #836 from lscieux/master
Fix a reflection panic with nested preloads
2016-02-08 18:16:09 +08:00
lscieux 369027a6ae Fix a reflection panic with nested preloads 2016-02-04 21:28:17 +01:00
Jinzhu d1fcba9bfc Merge pull request #834 from Xiol/patch-1
Fix documentation for Count() function example
2016-02-04 22:35:41 +08:00
Dane 08a740db98 Fix documentation for Count() function examples
Count function should pass pointer to struct rather than struct.
2016-02-04 09:23:04 +00:00
Jinzhu 2dfd76d22b Refactor DataTypeOf 2016-01-29 15:08:53 +08:00
Jinzhu c7b9acefb7 Merge pull request #823 from taiyangc/readme-typo
Fix README typo on Related usage.
2016-01-29 14:56:44 +08:00
Eric Chen 7bb90371e9 Fix README typo on Related usage. 2016-01-26 03:14:05 -08:00
Jason Seriff 3a13eade4e Remove regex guess on counting query - replace with explicit set on Count() call to fix order by issues 2016-01-25 14:28:02 -06:00
Jinzhu d92c5db9e7 Refactor dialect 2016-01-19 13:11:11 +08:00
Jinzhu e159ca1914 Refactor dialect 2016-01-18 20:32:52 +08:00
Jinzhu 896ee534e2 Add indirect method 2016-01-18 12:20:27 +08:00
Jinzhu 9739cb853c Merge pull request #804 from RichardKnop/feature/reflect-fieldbyname-panic-fix
Fixed an issue with reflect.Value.FieldByName causing panic
2016-01-18 12:02:59 +08:00
Richard Knop 50fe671928 Fixed an issue with reflect.Value.FieldByName causing panic under certain circumstances. 2016-01-17 23:18:16 +08:00
Jinzhu 19e9bd29e3 Refactor Scope CallMethod 2016-01-17 21:43:20 +08:00
Jinzhu 84f34c0c62 Move logger images to doc 2016-01-17 21:01:18 +08:00
Jinzhu 07773cc367 Keep refactoring on callbacks 2016-01-17 20:51:11 +08:00
Jinzhu 58a7252251 Refactor update callback 2016-01-17 19:57:03 +08:00
Jinzhu 92213273a5 Refactor create callback 2016-01-17 18:17:04 +08:00
Jinzhu e38b1e0948 Remove uncessary NeedPtr method 2016-01-17 17:12:19 +08:00
Jinzhu 4f84bf0d94 Hide method QuoteIfPossible 2016-01-17 16:37:17 +08:00
Jinzhu 317e1a9a48 Keep refactoring callbacks 2016-01-17 16:28:32 +08:00
Jinzhu 31366f388f Remove uncessary method CallMethodWithErrorCheck for Scope 2016-01-17 16:14:14 +08:00
Jinzhu de73d30503 Refactor callbacks 2016-01-17 15:30:42 +08:00
Jinzhu 09f46f01b9 Refactor dialect 2016-01-16 22:01:04 +08:00
Jinzhu 8e2aaa92c9 Rename Callbacks to Callback 2016-01-16 21:55:00 +08:00
Jinzhu f1237e4fe9 Refactor Callback 2016-01-16 21:46:57 +08:00
Jinzhu dc23ae63bf Keep refactoring association mode 2016-01-16 17:29:39 +08:00
Jinzhu c84e787b1d Merge branch 'master' into v1.0_dev 2016-01-16 11:40:08 +08:00
Jinzhu 211ccf4ea6 Fix using pointer value as foreign key 2016-01-16 11:37:16 +08:00
Jinzhu 4351917c45 Don't panic with ToDbName 2016-01-16 09:49:20 +08:00
James Kong 72104c6bf0 Fixes querying with inline map when a value is nil
This changes the inline map query build condition to use `IS NULL` 
instead of the equality operator when the provided value is `nil`.
2016-01-15 16:38:56 -08:00
Jinzhu 67874f9232 Keep Refactoring Association Mode 2016-01-16 08:23:38 +08:00
Jinzhu 822e895d4d Refactor getColumnAsArray 2016-01-15 22:55:37 +08:00
Jinzhu 41870191b0 Refactor Association Mode 2016-01-15 22:14:21 +08:00
Jinzhu 8d716be896 Fix some go vet/lint reports 2016-01-15 21:16:48 +08:00
Jinzhu 551c1e0c20 Keep refactoring on Preload 2016-01-15 20:39:39 +08:00
Jinzhu 3326a4e69d Refactor Preload 2016-01-15 18:38:58 +08:00
Jinzhu 41620f3d6c Fix assign relations to duplicated pointer fields 2016-01-15 11:04:49 +08:00
Jinzhu 79c4fae34d Refactor handleManyToManyPreload 2016-01-15 10:08:22 +08:00
Jinzhu d9229c5a7b Extract method Scan from rows 2016-01-13 16:53:11 +08:00
Jinzhu bfd421f999 Add TestNestedManyToManyPreload3 2016-01-13 16:00:43 +08:00
Jinzhu d53f5cf6dd Rename scope.Trace to trace 2016-01-13 16:00:08 +08:00
Jinzhu f0364a0fb5 Merge branch 'master' into v1.0_dev 2016-01-12 15:47:50 +08:00
Jinzhu 675283f0fe Testing UpdateDecodeVirtualAttributes 2016-01-12 15:47:47 +08:00
Jinzhu 341d047aa7 Rollback to old Unscoped API 2016-01-12 15:27:25 +08:00
Jinzhu 43e9035dad Fix Association Count with Soft Delete 2016-01-12 13:56:41 +08:00
Jinzhu 801a271d07 Fix Association Count 2016-01-12 12:31:05 +08:00
Jinzhu ee48d6986c Update README 2016-01-11 07:28:08 +08:00
Jinzhu f70de0bdff Generate more friendly names for table and columns 2016-01-10 22:56:22 +08:00
Jinzhu 5c57885d98 DeletedAt's type has to been *time.Time 2016-01-10 21:38:10 +08:00