Commit Graph

  • 74805f9cd9
    Merge branch 'master' into master Jinzhu 2019-10-17 23:17:39 +08:00
  • c66bb2d691
    Merge branch 'master' into master Jinzhu 2019-10-17 23:12:30 +08:00
  • de7247f83c
    Merge branch 'master' into master Jinzhu 2019-10-17 23:12:27 +08:00
  • 7729627ff6 Fix logging callbacks (#2652) Lilit 2019-10-17 18:12:01 +03:00
  • ad72b61594
    Merge branch 'master' into master Jinzhu 2019-10-17 23:07:43 +08:00
  • ac3b7669cd
    Merge branch 'master' into master Jinzhu 2019-10-17 23:07:03 +08:00
  • d2007b3c82 Describe name of field for invalid SQL datatypes (#2689) Devin Samarin 2019-10-17 07:56:19 -07:00
  • 820b5f244a MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect (#2690) Alex Stockwell 2019-10-17 07:54:11 -07:00
  • 5b6dd13276 add Smap comment theoneLee 2019-10-15 11:45:28 +08:00
  • d87621ff2c add Smap comment and modify testcase theoneLee 2019-10-15 11:38:35 +08:00
  • f2c6388e5a 1. fix bug : https://github.com/jinzhu/gorm/issues/2700 misko 2019-10-14 14:13:18 +08:00
  • 6fe19d9611 custom namer support theoneLee 2019-10-12 18:18:12 +08:00
  • 7b9374b3f6 fix: #2696 JasonQu 2019-10-10 16:39:21 +08:00
  • b87283f3ce
    Merge branch 'master' into mssqllastinsertid Alex Stockwell 2019-10-08 07:14:28 -07:00
  • 1bca5dbdd9
    Merge pull request #2691 from ken8203/bugfix/fix-typo-of-example-code Emir Beganović 2019-10-08 12:04:52 +02:00
  • 6dbba04db6 MSSQL Create() fix: Added OUTPUT query to Create() builder Alex Stockwell 2019-10-07 15:02:26 -07:00
  • 7fe81acec6 Prevent primary key from being changed when doing an update on Interface based queries Daniel Sullivan 2019-10-06 14:44:35 +09:00
  • e5d0267c0b Fix typo of example code Jay Chung 2019-10-05 12:12:47 +08:00
  • 5cdd048ba9 MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect Alex Stockwell 2019-10-04 16:28:04 -07:00
  • 2f85b6ad41
    Describe name of field for invalid SQL datatypes Devin Samarin 2019-10-04 13:50:29 -07:00
  • 4f235aab52
    Add comments Jacques Racagneres 2019-09-27 01:50:27 +01:00
  • 474edd63a7
    Fix Blank Associated Values Jacques Racagneres 2019-09-26 01:42:26 +01:00
  • 762298bba3 Scan now skips ignored fields when setting values Luigi Tanzini 2019-09-26 18:06:18 +02:00
  • 81c17a7e25 Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." (#2674) Emir Beganović 2019-09-25 13:22:43 +02:00
  • 17debe102b Revert "Fix #2517 : Check for incomplete parentheses to prevent SQL injection." Emir Beganovic 2019-09-25 08:38:30 +02:00
  • 23ca846df3 use show statement in mysql dialect for compatibility for tencent tdsql okhowang(王沛文) 2019-08-25 18:04:33 +08:00
  • 05fba9a152 Add UpdateModel function to allow updating a model without needing to specify parameters manually Daniel Sullivan 2019-09-19 17:34:25 +09:00
  • cc18a6bb74 Remove go.sum Daniel Sullivan 2019-09-18 19:29:03 +09:00
  • 88867e2416 Repath Daniel Sullivan 2019-09-18 19:21:15 +09:00
  • c5537355c7 Update module name Daniel Sullivan 2019-09-18 19:18:31 +09:00
  • f394b1b51f Added ParameterisedTable function - takes a parameterised string and query parameters and applies them after FROM in the generated SQL Daniel Sullivan 2019-09-18 19:14:52 +09:00
  • 855374eeab Fix logging callbacks SmotrovaLilit 2019-09-08 19:40:58 +03:00
  • 0c98e7d712 Fixed import formatting to match goimports (#2568) Christian Muehlhaeuser 2019-09-12 16:17:31 +02:00
  • 13f19a5036 Uncapitalize error strings (#2533) Shunsuke Otani 2019-09-12 23:16:52 +09:00
  • d5cafb5db1 Fix CallbackProcessor.Get() for removed or replaced same name callback (#2548) Shunsuke Otani 2019-09-12 23:16:05 +09:00
  • b954854116 bump mattn/go-sqlite3 to v1.11.0 (#2565) Steve Ellis 2019-09-12 10:13:59 -04:00
  • 2a3ab99a08 fix insert timezero 0001-01-01 (#2635) haoc7 2019-09-02 09:44:50 +08:00
  • 907f875972 Fixed Ignore Blank Fields On Create James Hogge 2019-08-31 13:28:56 +01:00
  • 4b145bbd0b fix insert timezero 0001-01-01 haoc7 2019-08-28 13:49:40 +08:00
  • 4ddf5a8da9 add a field(LastInsertId) in scope to getLastInsertId yudayong 2019-08-16 22:01:25 +08:00
  • 67bd270df9 change go.mod Matt Schiros 2019-08-16 01:26:35 -07:00
  • 76bf984630 Merge branch 'master' of https://github.com/jinzhu/gorm Matt Schiros 2019-08-16 01:17:22 -07:00
  • fa019508b0 remmove jinzhu references Matt Schiros 2019-08-16 00:56:30 -07:00
  • 4bace5450b Rename expr type to make it public. Chris Macklin 2019-08-08 10:56:57 -07:00
  • 47c5a48d11 fix ut Yuyang Gong 2019-07-28 20:39:55 +08:00
  • 44b333791e fix ut Yuyang Gong 2019-07-28 20:25:42 +08:00
  • a64f22fd4d add test and fix bug Yuyang Gong 2019-07-28 20:14:51 +08:00
  • d25d5bdf9c
    Merge branch 'master' into master Dozer 2019-07-28 19:45:06 +08:00
  • 1bf0644c4f
    SetColumn No fields ignored were processed aimuz 2019-07-24 16:04:48 +08:00
  • 4ec5f5d6e2
    Fix blank field add columns Shuo 2019-07-24 12:02:54 +08:00
  • bfabc06c6d
    Fixed import formatting to match goimports Christian Muehlhaeuser 2019-07-19 02:31:23 +02:00
  • 1648742e1d bump mattn/go-sqlite3 to v1.11.0 Steve Ellis 2019-07-18 00:00:14 -04:00
  • 6e209826f9 Support update joins Jason Chavannes 2019-07-14 15:22:21 -07:00
  • b60263e637
    Merge branch 'master' into update_with_join Dmitry Zenovich 2019-07-11 20:55:22 +03:00
  • 47150353e6 fix: #2549 Check the DeleteAt field of the join table jinjiaji 2019-07-09 16:37:36 +08:00
  • 10429c7053 Fix CallbackProcessor.Get() for removed or replaced same name callback zaneli 2019-07-08 14:42:10 +09:00
  • 983b0e3481 fix typo Yang Qing 2019-07-05 16:58:39 +08:00
  • bb6023b24b support polymorphic to many2many relation Yang Qing 2019-07-05 16:46:51 +08:00
  • 443f1de146 The code block should be limited in ("has_many", "has_one") to avoid wrong settings of other relation kinds Yang Qing 2019-07-05 16:11:35 +08:00
  • 37ca2999bb Uncapitalize error strings zaneli 2019-07-01 11:40:04 +09:00
  • f7f7ffd204
    Merge branch 'master' into master JUN JIE NAN 2019-07-01 09:45:00 +08:00
  • 836fb2c19d
    Fix #2517 : Check for incomplete parentheses to prevent SQL inj… (#2519) Emir Beganović 2019-06-30 11:50:19 +04:00
  • dee4b0aeaa
    Merge branch 'master' into master JUN JIE NAN 2019-06-27 10:59:45 +08:00
  • 8215224f7b
    Merge branch 'master' into 2517 Herpiko Dwi Aguno 2019-06-25 16:24:36 +07:00
  • e3cc5ea4d4 Fix #2517 : Check for incomplete parentheses to prevent SQL injection. Herpiko Dwi Aguno 2019-06-21 21:29:12 +07:00
  • a6b790ffd0
    Fix function name of comment (#2522) Emir Beganović 2019-06-25 10:50:53 +02:00
  • beb591e642 Fix function name of comment zaneli 2019-06-24 20:38:13 +09:00
  • 93ed4a2d09 Nested transaction support via savepoint JUN JIE NAN 2019-06-21 16:44:37 +08:00
  • b362404749 fixed test case no pass double 2019-06-16 16:26:30 +08:00
  • b8890dd52c fixed: queryCallback error if params to Find is created by reflection double 2019-06-16 15:15:41 +08:00
  • 7ce3f70a81
    Merge branch 'master' into master Emir Beganović 2019-06-16 07:08:20 +02:00
  • 01b6601142 Update go.mod Jinzhu 2019-06-13 14:42:55 +08:00
  • 5acd5e20e6 Remove Debug mode from test code Jinzhu 2019-06-13 12:20:11 +08:00
  • 835ca6ca93 Update wercker.yml to include mysql 8 Jinzhu 2019-06-13 11:48:19 +08:00
  • ff430cad49 Update tests Jinzhu 2019-06-13 11:21:13 +08:00
  • bf8f79d816
    Merge branch 'master' into master Jinzhu 2019-06-11 17:36:42 +08:00
  • 4ba1aa53da
    Merge branch 'master' into patch-1 Jinzhu 2019-06-11 17:35:26 +08:00
  • 6912486308
    Merge branch 'master' into master Jinzhu 2019-06-11 17:35:26 +08:00
  • a6c2b1d17d
    Merge branch 'master' into master Jinzhu 2019-06-11 17:35:16 +08:00
  • 321c636b9d Merge branch 'Momo733-master' Jinzhu 2019-06-11 17:32:55 +08:00
  • 781a818390 fix save err when specify a table name Momo733 2019-04-13 14:23:35 +08:00
  • 153ce22c99 Test Save with specfied table name Jinzhu 2019-06-11 17:30:14 +08:00
  • c44c6027fb add an override on the DB instance instead of using the global NowFunc. (#2142) Ruben de Vries 2019-06-10 14:45:42 +02:00
  • fec06da6a3 Add BeginTx for parity with sql.DB.BeginTx (#2227) Tyler Stillwater 2019-06-10 06:33:20 -06:00
  • cf9b85ed90 Don't set primary key's HasDefaultValue to true (#2127) Hylke Visser 2019-06-10 14:24:05 +02:00
  • f301f86e29 Add RollbackUnlessCommitted() (#2126) Adam S Levy 2019-06-10 04:19:39 -08:00
  • 280dd011a1 Don't AddError for Rollback on ErrTxDone (#2434) John Barker 2019-06-10 06:14:44 -06:00
  • 9127f7d86e Handle error when beginning transaction (#2489) Miguel Moll 2019-06-10 08:12:13 -04:00
  • 712c465560 add an override on the DB instance instead of using the global NowFunc. (#2142) Ruben de Vries 2019-06-10 14:45:42 +02:00
  • 5c9ba54b65
    Merge branch 'master' into override-now-func-on-db-instance Jinzhu 2019-06-10 20:42:18 +08:00
  • af01854d3e Add BeginTx for parity with sql.DB.BeginTx (#2227) Tyler Stillwater 2019-06-10 06:33:20 -06:00
  • 4932712f6f
    Merge branch 'master' into master Jinzhu 2019-06-10 20:28:01 +08:00
  • ac78f05986 Don't set primary key's HasDefaultValue to true (#2127) Hylke Visser 2019-06-10 14:24:05 +02:00
  • 8b03f7afe4
    Merge branch 'master' into master Jinzhu 2019-06-10 20:20:17 +08:00
  • 44d3060254 Add RollbackUnlessCommitted() (#2126) Adam S Levy 2019-06-10 04:19:39 -08:00
  • d9b000960b
    Merge branch 'master' into RollbackUnlessCommitted Jinzhu 2019-06-10 20:18:08 +08:00
  • 52c4497f71
    Merge branch 'master' into feature/use_index Jinzhu 2019-06-10 20:18:02 +08:00
  • 53c0fcfe7d
    Merge branch 'master' into master Jinzhu 2019-06-10 20:17:58 +08:00
  • 2ffe6da15e
    Merge branch 'master' into master Jinzhu 2019-06-10 20:15:44 +08:00
  • ea12400190 Don't AddError for Rollback on ErrTxDone (#2434) John Barker 2019-06-10 06:14:44 -06:00