Commit Graph

  • b5db07738d Correct work RecordNotFound for RAW SQL Andrey Nehaychik 2018-09-26 15:22:03 +03:00
  • 7668a6a045
    Merge 18220f5f3134fb26132d18fbefb6c0af773bb1f8 into f6260a00852946a10a57e8bb9f505f19bc9389b7 jacking 2018-09-22 11:59:17 +00:00
  • 66fc404ce6
    Merge ce7acb58660f6175e35ca95e9abf961c507a77de into f6260a00852946a10a57e8bb9f505f19bc9389b7 jacking 2018-09-22 11:59:17 +00:00
  • f6260a0085 Second part of the defaultTableName field race fix (#2060) Artemij Shepelev 2018-09-22 14:59:11 +03:00
  • 40d31d40f2 fixed nil error when fisrt updates with struct mohuishou 2018-09-22 02:03:39 +08:00
  • eb7f6c3795
    Merge 74fec261c8c6662391a78ed22c068b32e19f37ca into f1caf058c5624a4d3e7176ee387df6a2e4c9c018 rahulm95 2018-09-20 14:04:36 +00:00
  • 74fec261c8
    Spell correct rahulm95 2018-09-20 19:33:09 +05:30
  • ce7acb5866 fix getcolumn bug jacking 2018-09-20 14:08:15 +08:00
  • 8b098d271b
    Merge 61f680ea74a381b169e9c2d8824fb2ccb1cce07f into f1caf058c5624a4d3e7176ee387df6a2e4c9c018 Colby Aley 2018-09-19 16:32:13 +00:00
  • 61f680ea74
    Update Model documentation for clarity Colby Aley 2018-09-19 09:31:05 -07:00
  • 266a05273a adding function to get column's value jacking 2018-09-19 16:14:16 +08:00
  • 18220f5f31 adding function to get column's value jacking 2018-09-19 15:53:11 +08:00
  • a5a5b31ab0 Avoid conflict between variable and package names fifsky 2018-09-18 16:46:34 +08:00
  • 5be9bd3413 Rollback transaction when a panic happens in callback (#2093) ch3rub1m 2018-09-14 15:53:49 +08:00
  • 743efe0d69 Rollback transaction when a panic happens in callback ch3rub1m 2018-09-14 15:39:14 +08:00
  • 123d4f50ef lock TagSettings structure when modified (#1796) Eyal Posener 2018-09-10 02:11:00 +03:00
  • 253b5a4875
    Merge branch 'master' into tag-settings-lock Jinzhu 2018-09-10 07:10:41 +08:00
  • 282f11af19 Support only preloading (#1926) gstvg 2018-09-09 19:52:32 -03:00
  • 588b598f9f Fix issue updating models with foreign key constraints (#1988) Phillip Shipley 2018-09-09 18:50:22 -04:00
  • 26fde9110f getValueFromFields doesn't panic on nil pointers (#2021) Gustavo Brunoro 2018-09-09 19:47:18 -03:00
  • 012d147974 Improve preload speed (#2058) maddie 2018-09-10 06:45:55 +08:00
  • 73e7561e20 Use sync.Map for DB.values (#2064) Aaron Leung 2018-09-09 15:26:29 -07:00
  • d3e666a1e0 save_associations:true should store related item (#2067) Ikhtiyor 2018-09-10 03:25:26 +05:00
  • bdcdd2229e
    Merge 202f87cbf888051afac3a2acb19036c65a9d0a76 into 12607e8bdf4a724492d53d8c788edc77ad4439e7 Jason 2018-09-09 22:14:23 +00:00
  • 12607e8bdf for go1.11 go mod (#2072) kuangzhiqiang 2018-09-10 06:14:05 +08:00
  • 71b7f19aad Fix scanning identical column names occurring >2 times (#2080) Xy Ziemba 2018-09-09 15:12:58 -07:00
  • 688f220024
    Merge 2515ff8e25d2bc2e3a747ab5904dd88ddb47ea1f into dc3b2476c4eb61c37424a1ca2f46859e4e6fcd81 axxapp 2018-09-09 22:04:13 +00:00
  • dc3b2476c4 Don't save ignored fields into database Jinzhu 2018-09-10 06:03:41 +08:00
  • 6f58f8a52c added naming strategy option for db, table and column names (#2040) Adem Özay 2018-09-10 00:52:20 +03:00
  • 90da7c81a7 Fix scanning identical column names occurring >2 times Xy Ziemba 2018-09-03 17:21:52 -07:00
  • 7f969998cd
    for go1.11 go mod kuangzhiqiang 2018-09-01 19:37:19 +08:00
  • 202f87cbf8 增加GORM错误提示标示 aitbxx 2018-09-01 09:21:29 +08:00
  • f9ae0870d6 code quality Ikhtiyor Ahmedov 2018-08-31 17:02:50 +05:00
  • 14d95a2ec9 save_associations:true should store related item, save_associations priority on related objects Ikhtiyor Ahmedov 2018-08-31 16:55:01 +05:00
  • 55caa44e63 fix the formatting Aaron Leung 2018-08-29 14:14:07 -07:00
  • 8bbdbeab8e Replace the regular map with a sync.Map to avoid fatal concurrent map reads/writes Aaron Leung 2018-08-29 14:06:15 -07:00
  • 2a944bca88 fix race with defaultTableName field (again) Artemij Shepelev 2018-08-28 01:44:44 +03:00
  • b204f8f5c9
    Merge pull request #1 from jinzhu/master Artemij Shepelev 2018-08-28 01:41:35 +03:00
  • 95f243d92f Improve preload speed Maddie Zhan 2018-08-27 10:40:31 +08:00
  • 2515ff8e25
    Fix gorm:"-" When the query is not working to issues 2048 axxapp 2018-08-23 00:07:25 +08:00
  • 4ab3223f03
    Merge branch 'master' into master Adem Özay 2018-08-20 14:30:07 +03:00
  • 79c826ccad
    Merge branch 'master' into master Jinzhu 2018-08-19 07:16:01 +08:00
  • 32455088f2 doc: document ErrRecordNotFound error more clear (#2015) Eason Lin 2018-08-19 07:14:33 +08:00
  • 53995294ef Change buildCondition TableName to struct's TableName when query is interface{} (#2011) hector 2018-08-19 07:13:16 +08:00
  • 31ec9255cd Setting gorm:auto_preload to false now prevents preloading (#2031) Elliott 2018-08-19 01:11:27 +02:00
  • 0e04d414d5 Race fix. Changes modelStructsMap implementation from map with mutex to sync.Map (#2022) Artemij Shepelev 2018-08-19 02:09:21 +03:00
  • ba78ea9f50 added naming strategy option for db, table and column names Adem Özay 2018-08-16 03:10:49 +03:00
  • a90b7956f4 Setting gorm:auto_preload to false now prevents preloading Elliott 2018-08-08 12:52:34 +02:00
  • 27442d0e60 commit to rerun pipeline, comment changed Artemij Shepelev 2018-08-03 15:49:36 +03:00
  • bd4ed43163 removed newModelStructsMap func Artemij Shepelev 2018-08-03 11:57:05 +03:00
  • c94879ea64
    Merge branch 'master' into master Artemij Shepelev 2018-08-03 11:27:59 +03:00
  • 69dd970234 changed map with mutex to sync.Map (https://github.com/jinzhu/gorm/issues/1407) Artemij Shepelev 2018-08-03 11:01:47 +03:00
  • 4900f219fd getValueFromFields doesn't panic on nil pointers Gustavo Brunoro 2018-08-02 23:57:39 -03:00
  • d54e77e6ae
    undo change Eason Lin 2018-08-01 16:16:38 +08:00
  • b6ab773859
    fix goimports Eason Lin 2018-08-01 16:01:07 +08:00
  • b5c70ce86c
    fix goimports Eason Lin 2018-08-01 15:45:07 +08:00
  • 55228b5727
    doc: document ErrRecordNotFound error more clear Eason Lin 2018-08-01 15:31:48 +08:00
  • 0a5e025a92 Change buildCondition TableName to struct's TableName when query is interface{} hectorqin 2018-07-30 10:57:57 +08:00
  • 2efa80e036
    Merge 1acdf8b3ea53603a07a47609a4dad9b2ec30e117 into 409121d9e394922787885b001d148a05e3a42b6c Jonathan Friedman 2018-07-27 04:16:51 +00:00
  • 409121d9e3 Fixed mysql query syntax for FK removal (#1993) Alexey 2018-07-27 02:43:49 +03:00
  • d68403b29d do not close wrapped *sql.DB (#1985) antness 2018-07-27 02:43:09 +03:00
  • 588e2eef5d Fix typo in query_test (#1977) David Zhang 2018-07-27 07:38:02 +08:00
  • ac3ec858a6 Edit DB.clone(), DB.Dialect(), and Scope.Dialect() preserve transactions (#1939) Kevin 2018-07-26 19:35:53 -04:00
  • 1513e76fea
    Merge branch 'master' into master Jinzhu 2018-07-27 07:34:49 +08:00
  • dbb25e9487 Adding json type for mssql dialect, similar to postgres.Jsonb (#1934) Louis Brauer 2018-07-27 01:30:57 +02:00
  • 53d5c9df19
    Merge branch 'master' into master Jinzhu 2018-07-27 07:21:04 +08:00
  • 44f72bb47b
    Merge 6e51fe2b4a833134dc961511de0add7a36ef4667 into 0fd395ab37aefd2d50854f0556a4311dccc6f45a Marwan Aljubeh 2018-07-24 11:25:47 +00:00
  • 6e51fe2b4a Add some functions for managing dialects Marwan Al Jubeh 2018-07-24 12:21:29 +01:00
  • bde0d6cd1f
    Merge 9627224878aff557b8f149bfaaaf3821c6f61150 into 0fd395ab37aefd2d50854f0556a4311dccc6f45a Lokanadham M 2018-07-19 06:48:40 +00:00
  • 9627224878 Adding Trace attribute Scope to store tracing info lokanadham 2018-07-19 12:15:57 +05:30
  • 549f4e1239
    Merge 1da8451bb126d4ac27f530b765792ed19840a3dc into 0fd395ab37aefd2d50854f0556a4311dccc6f45a hector 2018-07-19 02:47:45 +00:00
  • 1da8451bb1 support association Find and Count with customized func, change buildCondition tablename to struct's tablename when query is interface{} hectorqin 2018-07-19 10:44:13 +08:00
  • 7ada703aef Fixed mysql query syntax for FK removal Alexey Kremsa 2018-07-17 12:52:39 +03:00
  • 088b993df9 fix to update callback for gorm tests Phillip Shipley 2018-07-16 15:58:20 -04:00
  • 0705ec6b0a do not close wrapped *sql.DB antness 2018-07-13 18:08:36 +03:00
  • 77a1fc6994 fix update callback to not try to write zero values when field has default value Phillip Shipley 2018-07-13 10:58:17 -04:00
  • 839bb79a6e Fix typo in query_test David Zhang 2018-07-10 11:15:37 +08:00
  • 56d46c7151
    Merge b051fb49017b32d1c62a5cb3dba880d9e10d751a into 0fd395ab37aefd2d50854f0556a4311dccc6f45a barnettZQG 2018-07-05 09:40:42 +00:00
  • 46d8ccf79b
    Merge c0eefc0ee055ae727126703888fa4018fbe5a025 into 0fd395ab37aefd2d50854f0556a4311dccc6f45a Artemij Shepelev 2018-06-29 13:50:20 +00:00
  • c0eefc0ee0 fix (https://github.com/jinzhu/gorm/issues/1407) Artemij Shepelev 2018-06-29 16:48:08 +03:00
  • 37fd6a2ad6
    Merge branch 'master' into master Kevin 2018-06-26 15:06:40 -04:00
  • 0fd395ab37 Fix ToDBName (#1941) Masaki Yoshida 2018-06-25 14:07:53 +09:00
  • 1907bff373 all: gofmt (#1956) ia 2018-06-25 07:06:58 +02:00
  • 1acdf8b3ea
    Fix Race condition in tablename Jonathan Friedman 2018-06-19 11:42:09 -04:00
  • ad940f849f all: gofmt ia 2018-06-17 00:32:08 +02:00
  • f1caf058c5 Tiny typo (#1955) A. Lombarte 2018-06-16 12:21:18 +02:00
  • 09da1d9f1e
    Tiny typo A. Lombarte 2018-06-16 02:19:43 +02:00
  • 7b04afc2e4 Adds a test case for tables creations and autoMigrate in the same transaction. Kevin Johnson 2018-06-08 12:14:04 -04:00
  • c6ae2d0e7c Fix ToDBName Masaki Yoshida 2018-06-08 18:45:49 +09:00
  • 989ca54201 Edit DB.clone(), DB.Dialect(), and Scope.Dialect() preserve transactions. Kevin Johnson 2018-06-07 23:41:36 -04:00
  • 72f41543a4 Adding proper comments Louis Brauer 2018-06-07 17:21:23 +02:00
  • 1aca53985b Adding json type for mssql dialect, similar to postgres.Jsonb Louis Brauer 2018-06-07 00:54:24 +02:00
  • e278db3bcf
    Update callback_query.go gstvg 2018-05-31 17:29:24 -03:00
  • 56714685fa add support for only preloading relations on an already populated model Gustavo de Bona Garcia 2018-05-31 17:23:44 -03:00
  • ba46288041 Minor code improvements Aleksandr Kretov 2018-05-31 00:10:24 +10:00
  • d608b0e281
    Merge 9a35c206df28b35f1af27efd435ef7f330b29eb8 into 82eb9f8a5bbb5e6b929d2f0ae5b934e6a253f94e Aleksandr Kretov 2018-05-30 12:50:34 +00:00
  • 9a35c206df Multiple value usage allowed within wrapper statement (eg. CONCAT(FUNC_A(?), FUNC_B(?))) Aleksandr Kretov 2018-05-30 22:07:12 +10:00
  • db9f275317 Field value wrapper function feature implemented. Now you can wrap field value into user-defined wrapper function(s) with setting it using WRAPPER tag. Wrapper functions are used with INSERT/UPDATE operations to allow you to use DBMS functions when inserting/updating a field value (eg. ST_GeomFromText(?), LOWER(?), EXTRACT(YEAR FROM ?)) Aleksandr Kretov 2018-05-30 21:45:54 +10:00
  • 7c9ad85cc3 Added func CountExpr to expr daniel 2018-05-28 19:56:35 +02:00
  • e7ef150c55 Added gorm.Union and gorm.expr.Union method (#2) Gerhard Gruber 2018-05-28 20:02:03 +02:00