Commit Graph

  • b2a66e79e8 Merge branch 'RichardKnop-bugfix/preload_indirect_zero_value_check' Jinzhu 2015-12-16 10:27:09 +08:00
  • 15169e635a Add two more nested many2many preload tests Jinzhu 2015-12-16 10:23:29 +08:00
  • e69ffaa9c4 Fixed a bug with invalid zero value in preload Richard Knop 2015-12-16 00:18:36 +08:00
  • fa2f068cbb Merge branch 'master' of https://github.com/jinzhu/gorm Paolo Galeone 2015-12-13 19:19:32 +01:00
  • ba694926d0 Create composite primary key for join table Jinzhu 2015-12-11 12:22:09 +08:00
  • 341703ed5d Scan value into ignored fields if there is no ambiguity Jinzhu 2015-12-11 11:45:22 +08:00
  • 9563ff814f Merge 8126bfc39e2b8b96854fc141294618a4bb779e45 into 8ee49893d1428fda97e2a2f8e5ce55a824b112c7 Ethan Liou 2015-12-09 02:45:04 +00:00
  • 8ee49893d1 Merge pull request #750 from lcowell/better_field_error Jinzhu 2015-12-09 10:44:54 +08:00
  • 807ed63cfe Fix pollute model's fields with join table's values Jinzhu 2015-12-09 10:40:12 +08:00
  • fc42a1bbf3 provide user with more descriptive error message Luke Cowell 2015-12-04 14:56:21 -08:00
  • 4c1a78bab7 Don't query all columns out from database after create, but only those has default value Jinzhu 2015-12-04 18:41:28 +08:00
  • 84c6b46011 Update inflection address Jinzhu 2015-12-03 15:18:42 +08:00
  • 8126bfc39e In create, reload it after handling associations EthanLiou 2015-11-26 01:47:27 +08:00
  • 2d2d926b6e Added support for default fields on create. Unified logics of default values between update and create Paolo Galeone 2015-11-23 16:41:29 +01:00
  • 5399fd879f Add support for sql expressions in struct tag default fileds, on update. Fixes create_test.go time comparison Paolo Galeone 2015-11-22 23:22:34 +01:00
  • 40b51709ff Use the sql default value (of the tag field) when updating a field to a blank value Paolo Galeone 2015-11-22 21:48:32 +01:00
  • 86afba0dc5 Merge branch 'master' of github.com:galeone/gorm Paolo Galeone 2015-11-22 20:29:50 +01:00
  • c0b9e3af82 Merge branch 'otiai10-feature/id-but-not-autoincremental' Jinzhu 2015-11-22 09:35:43 +08:00
  • ea83dec214 Use false to decline antuincrement Jinzhu 2015-11-22 09:35:18 +08:00
  • e102acf115 Merge 0923458e528845f4ce40ec81c607c9e594f80c03 into 2f9abdcf0231d7b14d38203efb1708db718e2fa1 Paolo Galeone 2015-11-21 14:41:49 +00:00
  • 0923458e52 Fix update of fields with a default value Paolo Galeone 2015-11-21 15:35:31 +01:00
  • ba12202af2 Enable to decline antuincrement on ID field otiai10 2015-11-21 18:15:47 +09:00
  • 2f9abdcf02 Fix preload many2many problem when no search results, #688 Jinzhu 2015-11-16 12:19:25 +08:00
  • edee5f5b75 Merge pull request #720 from jseriff/master Jinzhu 2015-11-16 11:18:52 +08:00
  • e7d209d71b Add Contributors link Jinzhu 2015-11-16 10:59:24 +08:00
  • 903e2db911 Add CONTRIBUTING.md Jinzhu 2015-11-16 10:57:12 +08:00
  • a3c1fda757 Modify count regex to match parenthesis instead of starting a capture. Fixes #679 Jason Seriff 2015-11-10 14:51:16 -06:00
  • 611e613459 Merge pull request #709 from pacificporter/is_byte_array_or_slice Jinzhu 2015-11-09 09:24:44 +08:00
  • 1c22149b3c Merge pull request #717 from brunoksato/master Jinzhu 2015-11-09 09:24:12 +08:00
  • b27ac1a996 I was breaking another case Bruno Sato 2015-11-06 18:55:56 -02:00
  • c68a386f91 Fix panic() in isUUID() HARUYAMA Seigo 2015-11-01 01:15:06 +09:00
  • 67f88d977b Merge pull request #708 from pacificporter/is_byte_array_or_slice Jinzhu 2015-10-31 18:12:38 +08:00
  • 92f9584c83 Fix SqlTag() in case of ByteSlice HARUYAMA Seigo 2015-10-31 16:23:55 +09:00
  • 0589d36e64 Merge pull request #706 from sulnedinfind/master Jinzhu 2015-10-29 22:23:35 +08:00
  • 3cb95264df add binary UUID support to postgres Yegor Wienski 2015-10-28 18:05:09 +03:00
  • 5f113dcb8d Merge pull request #704 from KarolBedkowski/fix_sqlite_column_detect Jinzhu 2015-10-25 18:35:19 +08:00
  • 50e1d6526e sqlite3: fix HasColumn - problem with detecting columns Karol Będkowski 2015-10-24 14:42:38 +02:00
  • 675bbca667 Fix compilation Bojan Petrovic 2015-10-21 14:49:49 +02:00
  • e5d3836451 Improvements in scope_private.go Bojan Petrovic 2015-10-21 14:41:50 +02:00
  • 484fb30089 Merge pull request #697 from DSchalla/master Jinzhu 2015-10-21 11:26:02 +08:00
  • 2a004ca186 Fixed Typo in Default values Section Daniel Schalla 2015-10-18 17:52:33 +02:00
  • 96f2bc40c7 Merge pull request #695 from henriquemenezes/master Jinzhu 2015-10-16 14:01:11 +08:00
  • e68fb8f9e2 Fix where clause for string primary key when query value is numeric and starts with zero Henrique Menezes 2015-10-16 00:49:47 -03:00
  • 20e37a0533 Merge pull request #691 from athurg/patch-1 Jinzhu 2015-10-13 00:07:15 +08:00
  • f1decc2c3e Fix FirstOrXXX access invalid memory address Athurg Feng 2015-10-12 22:38:41 +08:00
  • ede940e82d Merge pull request #676 from nkovacs/unused-interface Jinzhu 2015-10-01 22:16:33 +08:00
  • c691b33ce5 remove unused tabler interface Nikola Kovacs 2015-10-01 10:25:02 +02:00
  • 8a2b73723d Better compatibility for complex sql type Jinzhu 2015-10-01 08:06:08 +08:00
  • eeb9ba2250 Fix query with Joins Jinzhu 2015-10-01 07:43:38 +08:00
  • 4da2c28d4d Fix data race warning when get cached model struct Jinzhu 2015-10-01 07:09:00 +08:00
  • 88188b6161 Respect Where when create index Jinzhu 2015-10-01 06:53:15 +08:00
  • 58596afda1 Replace many2many associations with empty Jinzhu 2015-09-30 21:30:58 +08:00
  • a480621b76 Fix extra updates when Append associations for many2many Jinzhu 2015-09-30 12:10:22 +08:00
  • 048963c568 Merge pull request #666 from defend7/sqlite_autoincrement Jinzhu 2015-09-28 10:20:17 +08:00
  • e6ef3818bf Merge pull request #669 from nkovacs/addr-fix Jinzhu 2015-09-28 10:16:36 +08:00
  • 00fe20f8a8 Merge pull request #672 from ivpusic/master Jinzhu 2015-09-28 10:09:44 +08:00
  • 246383326c do not execute buildSelectQuery twice Ivan Pusic 2015-09-28 00:03:51 +02:00
  • 37bf87aa29 Fix can't load preload fields correctly Jinzhu 2015-09-26 00:41:07 +08:00
  • 198fc47051 Include all primary fields when build where conditions Jinzhu 2015-09-25 17:14:21 +08:00
  • a8d7a5fa34 add test for unaddressable value in preload Nikola Kovacs 2015-09-24 14:08:23 +02:00
  • 7f1a4cf301 Fix panic: reflect.Value.Addr of unaddressable value Nikola Kovacs 2015-09-24 13:34:51 +02:00
  • 1d8292c5ab Support the AUTOINCREMENT keyword on SQLite. Vibhav Sreekanti 2015-09-20 10:58:12 -07:00
  • 19aacb8fbb Add index for deleted_at Jinzhu 2015-09-18 10:28:09 +08:00
  • 073fa4dc85 include order by for group SQL Jinzhu 2015-09-17 21:39:16 +08:00
  • 2a46856d52 Fix update fields having default with empty value Jinzhu 2015-09-14 23:41:14 +08:00
  • edc1f78530 Fix calculate fields for the first time Jinzhu 2015-09-11 07:35:57 +08:00
  • 161772076f Merge e475d7c52b42e823ae8af9335ec02b028b74f104 into b46ca62c1895f8ea8911d148809899e918ad6d96 msmarino 2015-09-10 22:55:07 +00:00
  • 0076afce44 Merge 3544a68b923b9e5a5f52817184ddca2d9014f82c into b46ca62c1895f8ea8911d148809899e918ad6d96 MISUMI Masaru 2015-09-10 22:53:10 +00:00
  • b46ca62c18 Fix ReturningStr when with schema name, fixes #650 Jinzhu 2015-09-11 06:36:17 +08:00
  • e540893344 package ref cleanup ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 15:31:05 -04:00
  • b98468710a package ref cleanup ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 15:27:37 -04:00
  • a513a468b4 error handling refinements ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:15:23 -04:00
  • 7ae3729033 error handling refinements ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:14:05 -04:00
  • e0821942c1 error handling refinements ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:13:18 -04:00
  • f8dd9d077d enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:12:00 -04:00
  • be655f8539 change unique index to simple index on the migrated table because mssql does not allow duplicate NULL values in unique columns ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:10:46 -04:00
  • 10cba1556b enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:06:45 -04:00
  • f6873437f4 error handling cleanup ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:05:45 -04:00
  • a3b89f8100 enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:04:43 -04:00
  • a739f8b035 enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 14:04:10 -04:00
  • b71fda1a1a skip identity test for table without id column for mssql ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 13:57:14 -04:00
  • 93a2c6827d optionally enabling identity value in SQL INSERT for MS SQL ref: https://github.com/jinzhu/gorm/issues/647 biju-kalissery 2015-09-08 13:55:01 -04:00
  • 27d3c2d6a5 Merge 51213b0f69d6495e00c40bfac78270e3594ed5c2 into 447885d98f9d07a138733a0e65428dd2de1ed60d seriallink 2015-09-07 20:58:31 +00:00
  • 51213b0f69 Added support to schema name in returning clause Marcelo Monaco 2015-09-07 17:47:15 -03:00
  • 5284c7b441 Create gh-pages branch via GitHub Jinzhu 2015-09-06 08:54:23 +08:00
  • 3544a68b92 Add query example code MISUMI Masaru 2015-09-06 08:57:54 +09:00
  • 447885d98f Merge pull request #645 from hobeone/master Jinzhu 2015-09-03 07:43:35 +08:00
  • fac5e822ff Change logger to use an interface. This allows reuse of the nice formatting done by gorm while still sending the output to a custom logger. Daniel Hobe 2015-09-02 09:37:44 -07:00
  • d3fea6c535 Fix check HasIndex Jinzhu 2015-09-02 11:34:14 +08:00
  • b3d0898bf3 Add safeMap back Jinzhu 2015-08-31 15:07:06 +08:00
  • 8e415788d5 Update Document Jinzhu 2015-08-30 07:28:05 +08:00
  • 343234131a Merge pull request #5 from unravelin/api-key-plural Leonard Austin 2015-08-26 15:31:49 +01:00
  • fc8f0e53c8 add toc to documentation clinyong 2015-08-26 18:15:58 +08:00
  • 1d5f5f43f3 Support create/drop multiple tables Jinzhu 2015-08-26 11:54:07 +08:00
  • 4db003f0cd Fix api_keies George Thomas 2015-08-25 14:35:40 +01:00
  • 9303e070c8 Add codeclimate Jinzhu 2015-08-22 08:46:46 +08:00
  • f6f66a60b2 Document ModifyColumn, DropColumn Jinzhu 2015-08-19 22:47:38 +08:00
  • 44ae41e9b5 Update TODO, refer https://github.com/qor/qor/tree/master/validations for validations Jinzhu 2015-08-19 22:31:52 +08:00
  • a03d7d8798 Merge c53f494ff6982962e83570a6111dc51fc3d413ff into 92e08097167b30928160f3ceb6b5497ec0a1199d Jay Taylor 2015-08-19 13:55:47 +00:00
  • 92e0809716 Don't save associations if has any error happened Jinzhu 2015-08-18 11:08:20 +08:00