Commit Graph

  • edc2d5cc57 Try to fix join errors on MSSQL Gerhard Gruber 2021-11-23 14:17:12 +01:00
  • b8f33a42a4
    Add unused argument (#4871) Jinzhu 2021-11-23 17:11:52 +08:00
  • 919a6accc4 Update reviewdog config Jinzhu 2021-11-23 16:25:32 +08:00
  • 3fbb8669bc Update reviewdog config Jinzhu 2021-11-23 15:45:24 +08:00
  • 4bb28e1217 Append unused argument to gorm statement Jinzhu 2021-11-23 14:52:00 +08:00
  • ff26c82306 Upgrade sqlite driver Jinzhu 2021-11-23 14:04:31 +08:00
  • e0c089497f Append unused argument to gorm statement Jinzhu 2021-11-23 13:02:41 +08:00
  • 7ec3de3098
    Update scan.go heige 2021-11-23 13:01:57 +08:00
  • 6ce79264c3 Append unused argument to gorm statement Jinzhu 2021-11-23 11:37:14 +08:00
  • cff7845e58
    Bump gorm.io/driver/mysql from 1.1.3 to 1.2.0 in /tests (#4856) dependabot[bot] 2021-11-23 11:40:18 +08:00
  • 0f8e861597
    Bump github.com/jinzhu/now from 1.1.2 to 1.1.3 in /tests (#4866) dependabot[bot] 2021-11-23 11:40:03 +08:00
  • 11d5c346ae
    Bump github.com/jinzhu/now from 1.1.2 to 1.1.3 (#4865) dependabot[bot] 2021-11-23 11:39:42 +08:00
  • c1e5a84ed9
    Bump github.com/jinzhu/now from 1.1.2 to 1.1.3 in /tests dependabot[bot] 2021-11-22 07:09:59 +00:00
  • 70e6371a50
    Bump github.com/jinzhu/now from 1.1.2 to 1.1.3 dependabot[bot] 2021-11-22 07:08:44 +00:00
  • 7eb0cacec0 Added LowerExpr and UpperExpr Gerhard Gruber 2021-11-18 09:28:03 +01:00
  • 9e23996e16 Added Lower and Upper Gerhard Gruber 2021-11-18 09:25:27 +01:00
  • 7f6ca2ee20 feat: go code style adjust and optimize code for callbacks package daheige 2021-11-16 23:13:04 +08:00
  • 89bf83098d
    Bump gorm.io/driver/mysql from 1.1.3 to 1.2.0 in /tests dependabot[bot] 2021-11-15 07:10:54 +00:00
  • 5e64ac7de9
    feat(migrator,migrator/migrator.go,tests/migrate_test.go) : Get multiple data tables for migrator. (#4841) v1.22.3 dino.ma 2021-11-13 14:03:33 +08:00
  • 2858606bc7
    Update migrate_test.go Jinzhu 2021-11-13 13:57:36 +08:00
  • 3628a21ece
    Update migrate_test.go Jinzhu 2021-11-13 13:55:17 +08:00
  • 8a9fd3feca
    Update go.mod Jinzhu 2021-11-13 13:54:30 +08:00
  • c26d0f889b fix(migrate_test.go):change GetTables Method Test,use intersection dino.ma 2021-11-13 13:29:55 +08:00
  • a2a3b7038a feat(migrate_test.go/go.mod):update sqlserver,sqlite,postgres,pq version and add getTables test dino.ma 2021-11-13 12:54:07 +08:00
  • 9e97c9fa46 fix(updateClauses): add FROM Kelvin Floresta de Andrade 2021-11-13 00:05:52 -03:00
  • 10525fd0e2 fix(migrator/migrator.go):remove var sql dino.ma 2021-11-11 23:29:37 +08:00
  • 441dc26e43
    Update migrate_test.go Jinzhu 2021-11-11 15:00:35 +08:00
  • 87830a80ea
    Update migrator.go Jinzhu 2021-11-11 14:59:16 +08:00
  • 587707bba0 fix(migrator) : Return all data tables dino.ma 2021-11-10 19:58:16 +08:00
  • acde65b965 feat(migrator.go and migrator/migrator.go) : remove Table Struct replace with []string dino.ma 2021-11-09 20:09:19 +08:00
  • 33bc56cbb5 feat(update): update when has SET clause riverchu 2021-11-09 19:55:47 +08:00
  • 5daa413f41 Stabilize schema.FieldsWithDefaultDBValue's order, close #4643 Jinzhu 2021-11-08 20:20:55 +08:00
  • ca7accdbf6 Fix preload all associations with inline conditions, close #4836 Jinzhu 2021-11-08 19:40:40 +08:00
  • b23c3b290e Don't query with primary key when using Save Jinzhu 2021-11-08 18:49:49 +08:00
  • d9d5c4dce0
    Fix self-referential belongs to constraint (#4801) Mayank Govilla 2021-11-07 20:47:29 -05:00
  • 371f6371fe preload null judgment ningfei 2021-11-03 23:03:15 +08:00
  • f676d504f3 feat(migrator,migrator/migrator.go,tests/migrate_test.go) : Get multiple data tables for migrator. dino.ma 2021-11-06 16:57:20 +08:00
  • 45582f6ed8 remove drop table error check Mayank Govilla 2021-11-05 01:10:34 -04:00
  • a56aa16473 add relation equality check to avoid skipping self-referential schemas Mayank Govilla 2021-11-04 20:15:21 -04:00
  • 8efabf38d1 create tests for self-ref has one migration Mayank Govilla 2021-11-04 20:15:03 -04:00
  • 4c8810a848
    Refactor if logic (#4683) heige 2021-11-04 13:45:44 +08:00
  • 029c663d02 adjust code for Create daheige 2021-11-03 22:01:25 +08:00
  • e841ee0b7f adjust code for preload daheige 2021-11-03 21:33:37 +08:00
  • 220e9ca702 add connections leak test kinggo 2021-11-03 19:40:32 +08:00
  • c170af11e9
    fix connections leak (#4826) kinggo 2021-11-03 13:39:52 +08:00
  • 62fb3473e8 fix connections leak 李龙 2021-11-03 13:35:29 +08:00
  • 758d723ff0 fix connections leak 李龙 2021-11-03 13:28:27 +08:00
  • be1494c0cb fix connections leak 李龙 2021-11-03 12:38:12 +08:00
  • b947dee882 fix connections leak 李龙 2021-11-03 12:07:21 +08:00
  • 6060f45f1e scope: change modifyColumn so that it works with our postgres. Aleksandr Demakin 2021-11-01 13:20:29 +00:00
  • 7b927900e9
    Bump gorm.io/driver/sqlserver from 1.1.2 to 1.2.0 in /tests (#4820) dependabot[bot] 2021-11-01 17:09:08 +08:00
  • 8de266b4a7
    Add ToSQL support to generate SQL string. (#4787) Jason Lee 2021-11-01 17:08:54 +08:00
  • 76fbf11b85 Improve sql builder test for all dialects. Jason Lee 2021-11-01 16:36:57 +08:00
  • 536b265c23
    Bump gorm.io/driver/sqlserver from 1.1.2 to 1.2.0 in /tests dependabot[bot] 2021-11-01 07:08:55 +00:00
  • 9635d25150 Fix query with uninitialized map Jinzhu 2021-11-01 12:00:36 +08:00
  • 9f533950a2 Add dest value if current size equal zero v1.22.2 Jinzhu 2021-10-28 17:12:31 +08:00
  • 4cd089df1d Add db.ToSQL method for generate SQL string. Jason Lee 2021-10-28 11:45:55 +08:00
  • e953880d19 Add returning tests v1.22.1 Jinzhu 2021-10-28 08:03:23 +08:00
  • 835d7bde59 Add returning support to delete Jinzhu 2021-10-28 07:24:38 +08:00
  • 221f8963db Added sub-transaction detection to WrapInTx Gerhard Gruber 2021-10-27 12:22:54 +02:00
  • af3fbdc2fc Improve returning support v1.22.0 Jinzhu 2021-10-26 22:36:37 +08:00
  • d3211908a0
    Refactor ParseWithSchemaTable method and improve test. (#4789) Jason Lee 2021-10-25 11:26:44 +08:00
  • 410393c804 try to fix too much updates Gerhard Gruber 2021-10-22 12:18:02 +02:00
  • 8417729f4b Update issue with UpdateFields Gerhard Gruber 2021-10-21 19:52:23 +02:00
  • 9922312e08 One more situation with empty in arrays Gerhard Gruber 2021-10-21 17:39:54 +02:00
  • 5fecbbd4e2 in and not in support empty arrays Gerhard Gruber 2021-10-21 17:33:34 +02:00
  • e3649fd45d Rename schemaTable to specialTableName for clearly argument. Jason Lee 2021-10-21 18:11:03 +08:00
  • b1626b1b46 Fix schema.ParseWithSchemaTable method for only use schemaTable in migrator and improve test. Jason Lee 2021-10-20 20:48:17 +08:00
  • 887de0049b added order by case FlorianVAG 2021-10-20 13:23:01 +02:00
  • 09483e8928 Refactor ParseWithSchemaTable method and improve test. Jason Lee 2021-10-19 10:34:57 +08:00
  • 38e55f1117
    Merge pull request #4773 from xwjdsh/master Jason Lee 2021-10-19 10:11:11 +08:00
  • a3bd9c3ea2 fix: automigrate error caused by indexes while using dynamic table name Wendell Sun 2021-10-13 01:59:28 +08:00
  • 9a5ba37604 Merge branch 'hashicorp-jimlambrt-null-without-ptrs' Jinzhu 2021-10-13 21:02:03 +08:00
  • b27095e8a1 Refactor Convert SQL null values to zero values for model fields which are not pointers #4710 Jinzhu 2021-10-13 21:01:32 +08:00
  • 19cf645dbd feat: Convert SQL nulls to zero values (ConvertNullToZeroValues) Jim 2021-09-12 06:42:48 -04:00
  • 696092e287
    update tests' go.mod and tests_all.sh (#4774) kinggo 2021-10-13 14:41:33 +08:00
  • b27e0df40a update tests' go.mod and tests_all.sh kinggo 2021-10-13 14:35:46 +08:00
  • 85e0c36595 modify create nil pointer test case kinggo 2021-10-12 21:37:38 +08:00
  • ec58e3319f
    fixed:panic when create value from nil struct pointer. (#4771) kinggo 2021-10-12 21:19:08 +08:00
  • c5db44d03f fixed:panic when create value from nil struct pointer. kinggo 2021-10-12 21:04:47 +08:00
  • 9419d5b114
    Merge branch 'go-gorm:master' into patch-2 kinggo 2021-10-12 20:59:09 +08:00
  • e371ada36e fixed:create nil pointer kinggo 2021-10-12 20:34:41 +08:00
  • f3bc7427be protocbuffer file: XXX_NoUnkeyedLiteral struct{} json:"-" db.Find(&Srt) raise error: field XXX_NoUnkeyedLiteral: define a valid foreign key for relations or implement the Valuer/Scanner interface HOW:add filter: field.Tag.Get("json") != "-" WHY:unsupported parsing type: struct{} set guessLevel to guessEmbeddedHas have been commented:schema/relationship.go:381 as follows: reguessOrErr := func() { switch cgl { case guessGuess: schema.guessRelation(relation, field, guessBelongs) case guessBelongs: schema.guessRelation(relation, field, guessEmbeddedBelongs) case guessEmbeddedBelongs: schema.guessRelation(relation, field, guessHas) case guessHas: schema.guessRelation(relation, field, guessEmbeddedHas) // case guessEmbeddedHas: default: schema.err = fmt.Errorf("invalid field found for struct %v's field %s: define a valid foreign key for relations or implement the Valuer/Scanner interface", schema, field.Name) } } wangjp01 2021-10-11 18:33:12 +08:00
  • 66388cf40b fix: automigrate error caused by indexes while using dynamic table name #4752 Wendell Sun 2021-10-11 13:44:18 +08:00
  • 418c60c83c
    fixed: clauseSelect.Columns missed when use Join And execute multiple query. (#4757) v1.21.16 kinggo 2021-10-09 16:55:45 +08:00
  • 99a3db206b fixed: clauseSelect.Columns missed when use Join And execute multiple query. kinggo 2021-10-09 16:34:48 +08:00
  • bfda75d099 Support specify select/omit columns with table Jinzhu 2021-10-09 10:42:41 +08:00
  • 6312d86c54 Support specify select/omit columns with table Jinzhu 2021-10-08 17:51:27 +08:00
  • d4c838c1ce Upgrade sqlite driver Jinzhu 2021-10-08 17:31:58 +08:00
  • b46e2afc4a
    fix : update miss where's condition when primary key use "<-:create" tag (#4738) kinggo 2021-10-08 13:47:01 +08:00
  • e3fc49a694
    feat: ajust PreparedStmtDB unlock location and BuildCondition if logic (#4681) heige 2021-10-08 11:16:58 +08:00
  • c13f3011f9
    feat: adjust SetupJoinTable func if..else code (#4680) heige 2021-10-08 11:05:50 +08:00
  • 5d91ddac8c
    fixed belongs_to & has_one reversed if field same (proper fix) (#4694) Paras Waykole 2021-10-08 08:29:55 +05:30
  • 57d927d046
    Bump gorm.io/driver/postgres from 1.1.1 to 1.1.2 in /tests (#4740) dependabot[bot] 2021-10-08 10:54:50 +08:00
  • 0b6bd33934
    Update tests.yml (#4741) s-takehana 2021-10-08 11:51:53 +09:00
  • 15c7208f6b Update tests.yml s-takehana 2021-10-05 02:13:46 +09:00
  • c49846a5ec
    Bump gorm.io/driver/postgres from 1.1.1 to 1.1.2 in /tests dependabot[bot] 2021-10-04 07:09:27 +00:00
  • 17c3a66458 fix:rename test case kinggo 2021-09-30 14:40:47 +08:00
  • 61b9946103 fix:update miss where condition kinggo 2021-09-30 14:28:40 +08:00
  • 7be135d7be fix:update miss where condition kinggo 2021-09-30 12:16:46 +08:00