Commit Graph

  • 81c00fdc8f Don't add duplicated error Jinzhu 2015-08-18 11:06:10 +08:00
  • 24aeec7a1e Merge pull request #625 from wallclockbuilder/patch-1 Jinzhu 2015-08-18 09:24:24 +08:00
  • 9982134955 Fix preload many2many with multiple primary keys Jinzhu 2015-08-18 09:08:33 +08:00
  • 8f901b4b55 Add documentation info Mawueli Kofi Adzoe 2015-08-18 01:03:00 +00:00
  • 6a6c1bf762 Remove not necessary PreloadWithJoin Jinzhu 2015-08-18 08:05:44 +08:00
  • 7ec2b87312 Add more preloading many2many tests Jinzhu 2015-08-18 07:47:00 +08:00
  • a24417824d More improvements for preload many2many Jinzhu 2015-08-18 07:43:08 +08:00
  • 07571d1adf increase performance m2m preload kimiby 2015-08-17 22:28:40 +03:00
  • e2689d335b Merge branch 'kimiby-many2many_preload' Jinzhu 2015-08-17 23:11:54 +08:00
  • f8e2f04562 Some Tweaks for Preload Many2Many, Add tests with inline conditions Jinzhu 2015-08-17 23:09:07 +08:00
  • 27511118fe Update Preload Many2Many tests Jinzhu 2015-08-17 22:19:10 +08:00
  • 3ca4a72a4c Handle DB error in callbacks Jinzhu 2015-08-17 16:38:01 +08:00
  • 018a7e69ec Handle DB error in callbacks Jinzhu 2015-08-17 16:38:01 +08:00
  • 281c5d10f6 preload_m2m improve kimiby 2015-08-16 12:36:23 +03:00
  • f35dee5531 preload_m2m fix and test kimiby 2015-08-16 12:25:25 +03:00
  • fbce0d98f6 m2m preload utils kimiby 2015-08-16 10:35:58 +03:00
  • 42c3f39163 m2m preload kimiby 2015-08-16 10:10:11 +03:00
  • dd0d4d931f Add errorsInterface Jinzhu 2015-08-14 14:53:26 +08:00
  • 0996ddb604 Rename Errors to GetErrors Jinzhu 2015-08-14 12:29:53 +08:00
  • 309740983e Add Errors Jinzhu 2015-08-13 16:42:13 +08:00
  • 7ad080c6c6 Merge 36ea322ee8f1666cc97530f5fd5561d909efd105 into e1ce3b706624d5a28d7d7bc4b48c9e61eac14896 George Thomas 2015-08-13 15:35:18 +00:00
  • e1ce3b7066 Merge branch 'jaytaylor-jay/ddl-errors' Jinzhu 2015-08-13 09:09:37 +08:00
  • 197ae0e893 Fixed detecting pointers as a Scanner. thanks @NOX73 Jinzhu 2015-08-12 22:28:01 +08:00
  • 905b6232a3 Fix can't call callbacks for embedded pointers Jinzhu 2015-08-10 12:40:56 +08:00
  • ff3c23c9e9 fixes #593 - Dont include quotes on dest table Leon Maia 2015-08-07 17:16:40 -03:00
  • ab1832b9a5 Handle children db's Error in callbacks Jinzhu 2015-08-07 16:35:48 +08:00
  • 17917d49d8 Reverted to original `NewRecord' func as per @jinzhu's feedback. Jay Taylor 2015-08-12 09:32:18 -07:00
  • 41dc707ffe Merge 3bc026911695006e3dec24a5121b69fd88b4121f into 1d4f908ea2d139b49ab4ce86dc6d6f3bfb259dac Alexander 2015-08-12 14:28:21 +00:00
  • 1d4f908ea2 Fixed detecting pointers as a Scanner. thanks @NOX73 Jinzhu 2015-08-12 22:28:01 +08:00
  • 7fcb3e889f Merge pull request #600 from jaytaylor/jay/current_database Jinzhu 2015-08-12 22:03:49 +08:00
  • 3bc0269116 Fixed detecting pointers as a Scanner. Rozhnov Alexandr 2015-08-11 21:26:39 +03:00
  • 526fff01b7 Merge branch 'jay/current_database' into jay/ddl-errors Jay Taylor 2015-08-11 09:05:53 -07:00
  • beeb040c62 Reworked CurrentDatabase API to return the name instead of `*gorm.DB'. Jay Taylor 2015-08-11 08:59:59 -07:00
  • 1a07673e97 Fix can't call callbacks for embedded pointers Jinzhu 2015-08-10 12:40:56 +08:00
  • 8efbe276e8 Merge pull request #603 from leonmaia/master Jinzhu 2015-08-10 10:43:32 +08:00
  • da31f58607 Ensure DDL dialect queries propagate error states to descendent scopes. Jay Taylor 2015-08-08 14:08:25 -07:00
  • 70725f9d77 `CurrentDatabase' determines current dbname by querying the database. Jay Taylor 2015-08-06 12:37:26 -07:00
  • c53f494ff6 Recalculate fields in `Scope.Fields' when empty (nil) or number of fields is LTE 1. Jay Taylor 2015-08-07 21:52:00 -07:00
  • 903d18a03e Merge 26ed31e7b60ebd86fc00bd2e3e7e2228a4c338db into fd9e42655f382e76a4c755a676be827947f23b81 Jay Taylor 2015-08-07 22:04:08 +00:00
  • 26ed31e7b6 Preserve modelStructs so that multiple invocations of `db.SingularTable(true|false)' don't clobber the state. Jay Taylor 2015-08-07 15:01:35 -07:00
  • 6d91f300f5 fixes #593 - Dont include quotes on dest table Leon Maia 2015-08-07 17:16:40 -03:00
  • fd9e42655f Handle children db's Error in callbacks Jinzhu 2015-08-07 16:35:48 +08:00
  • d21eed4b66 Don't include Order for counting sql Jinzhu 2015-08-05 15:58:11 +08:00
  • e475d7c52b documented foreignkey Marcos Sánchez Marino 2015-08-02 10:19:24 +02:00
  • 63abe54497 Merge 335f09749bcbb05e9e1935ab57dfd03cc222c3b9 into 6b8f2fcab8b2db599481fe2aa13ee97b63811d37 Pär Karlsson 2015-08-01 23:38:08 +00:00
  • 6b8f2fcab8 Send a ping to make sure the database connection is alive, thanks @pariz Jinzhu 2015-08-02 07:37:33 +08:00
  • 335f09749b Fixed a bug when using sqlite Pär Karlsson 2015-08-02 01:35:22 +02:00
  • 9e131e5ec0 Merge remote-tracking branch 'upstream/master' Pär Karlsson 2015-08-02 01:30:04 +02:00
  • 0def184b0c Merge pull request #572 from eirmag/master Jinzhu 2015-08-02 07:28:42 +08:00
  • bdf410d4d1 Added generic ping check to probe for active db connection Pär Karlsson 2015-08-02 01:18:22 +02:00
  • eef40a06ff Rename the parameter to table_options and avoid introduction of new API function OpenWithTableSuffix Gabriel 2015-08-01 22:46:38 +00:00
  • a7762ea7d6 Return error happend in Create/Update when using FirstOrCreate Jinzhu 2015-08-01 12:00:35 +08:00
  • e2e417a8c2 Fix complicated Select Jinzhu 2015-08-01 11:49:34 +08:00
  • f07216e90e Allow pass blank string to Order Jinzhu 2015-08-01 11:31:36 +08:00
  • 85a682e820 Update README for AddForeignKey example Jinzhu 2015-08-01 11:28:31 +08:00
  • 393d8a3a52 Fix possible duplciated foreign key name Jinzhu 2015-08-01 11:27:01 +08:00
  • 05b3f036f8 Change plural engine to github.com/qor/inflection Jinzhu 2015-08-01 11:20:08 +08:00
  • 6f30170fec Use copy logger into itself instead of using parent's Jinzhu 2015-08-01 11:09:17 +08:00
  • bee1c8d119 Merge pull request #576 from kiwih/master Jinzhu 2015-08-01 10:00:05 +08:00
  • b548c7ffa8 Merge 2c7c6848c0e5a3cbd66ba07ffcd39460bf810e4e into 8a88d665d5a7c7b6a03e8cf8b6b300aa57e70be1 Yan-Fa Li 2015-08-01 01:25:28 +00:00
  • 8a88d665d5 Add QuoteIfPossible for Scope Jinzhu 2015-08-01 09:25:06 +08:00
  • fa86433142 Overwrite initiliazed slices as empty slices Jinzhu 2015-08-01 09:06:06 +08:00
  • 8bf7bb9857 Merge bcd5600f397ddeafe6b23252cab6f8e463268fda into 3f18890ca41321fe5a7ffc87337ff67ffbf21574 İlker Göktuğ 2015-08-01 00:55:37 +00:00
  • 3f18890ca4 Merge pull request #583 from liudanking/master Jinzhu 2015-08-01 08:54:47 +08:00
  • 6d4a5f75ee Merge pull request #589 from rghose/patch-1 Jinzhu 2015-08-01 08:51:36 +08:00
  • 1c227d4243 this fixes syntax error Rahul Ghose 2015-07-31 16:52:46 +05:30
  • 25ba9487aa Create join table with computed foreign keys Jinzhu 2015-07-31 16:33:44 +08:00
  • 6a7dda9a32 Fix AssociationForeignFieldNames for many2many relations Jinzhu 2015-07-31 15:25:33 +08:00
  • f00b95d305 Passed all tests for multiple primary keys Jinzhu 2015-07-30 22:59:25 +08:00
  • f50956cfef Fix test TestSelectWithCreate Jinzhu 2015-07-30 22:36:04 +08:00
  • ebbeecd10f Fix test TestManyToMany Jinzhu 2015-07-30 22:18:56 +08:00
  • 9c52c29e90 Fix test TestRelated Jinzhu 2015-07-30 18:56:05 +08:00
  • 7decf73356 Fix test TestHasOneAndHasManyAssociation Jinzhu 2015-07-30 18:41:43 +08:00
  • 4e8272cf9d Fix compile error for preload Jinzhu 2015-07-30 18:19:49 +08:00
  • fea291e796 Fix compile error for scope_private Jinzhu 2015-07-30 17:58:49 +08:00
  • dc428d2364 Fix compile error for association Jinzhu 2015-07-30 17:26:10 +08:00
  • a29230c86f multpile foreign keys Jinzhu 2015-07-30 14:26:48 +08:00
  • 68400171ac typo Pär Karlsson 2015-07-29 17:58:33 +02:00
  • bb8e0a9d84 Fixed issue https://github.com/jinzhu/gorm/issues/151 where postgresql connection problems fail silently Pär Karlsson 2015-07-28 16:29:56 +02:00
  • 2fe185eb77 fix panic in function databaseName when there are special characters in password, such as '?', '/' liudan 2015-07-28 16:33:32 +08:00
  • 59f494a41f Merge 5808585d18ed95773730930b3bbd7391a12437ee into 82d726bbfd8cefbe2dcdc7f7f0484551c0d40433 crystalin 2015-07-22 04:34:52 +00:00
  • a9cdf1dc7f Add basic support for multiple HAVING clauses. All clauses will be ANDed together. kiwih 2015-07-22 15:00:20 +12:00
  • 82d726bbfd Merge pull request #573 from gitter-badger/gitter-badge Jinzhu 2015-07-21 15:06:57 +08:00
  • e6741c3f1e Added Gitter badge The Gitter Badger 2015-07-21 07:03:25 +00:00
  • 4c3daade4c Don't quote column if it is not only column name when create index Jinzhu 2015-07-21 10:12:31 +08:00
  • 260000d00f Propagate argument in open function with table options Gabriel 2015-07-20 22:46:04 +00:00
  • 8848fc476d Table suffix to create tables with InnoDB engine with mysql. Alter table is not affected yet, only create table and auto migration Gabriel 2015-07-19 22:37:08 +00:00
  • bcd5600f39 overwrite initiliazed slices as empty slices İlker Göktuğ Öztürk 2015-07-17 16:06:31 +03:00
  • 0b010c1f8a Merge 77666f63094070aadb419440b7121155a879cf50 into 5663048f137b961f9b1bac6a10227096aa36b0bf İlker Göktuğ 2015-07-17 12:58:24 +00:00
  • 77666f6309 overwrite initiliazed slice as empty slice İlker Göktuğ Öztürk 2015-07-17 15:47:11 +03:00
  • 36ea322ee8 Merge pull request #3 from jinzhu/master Leonard Austin 2015-07-13 18:20:04 +01:00
  • 5576102c6a Merge a9d11a9cc8a013a94c296db5a79fe75ad415df5e into 5663048f137b961f9b1bac6a10227096aa36b0bf Jay Taylor 2015-07-03 02:57:22 +00:00
  • 5663048f13 Merge pull request #559 from jaytaylor/jay/uncover-rows-affected-errors Jinzhu 2015-07-03 10:57:19 +08:00
  • 923ca15b6f Surface errors emitted by `RowsAffected'. Jay Taylor 2015-07-02 12:06:06 -07:00
  • a9d11a9cc8 Add *DB' param to JoinTableHandlerInterface.Setup' interface to preserve DB settings in intermediate setup scope. Jay Taylor 2015-07-02 11:58:54 -07:00
  • 2c7c6848c0 Issue #553 quoting breaks mariadb/mysql Yan-Fa Li 2015-07-02 11:16:57 -07:00
  • 2dbafd7729 Merge 8545f588249455f922d415a699e0526c779a1639 into 27a442b5ecef401a3ba2325383a96a09b0a983d9 Yan-Fa Li 2015-07-02 18:11:04 +00:00
  • 8545f58824 No auto_inc of gorm:"primary_key" if foreignkey Yan-Fa Li 2015-07-02 11:03:54 -07:00
  • 27a442b5ec Merge pull request #550 from jaytaylor/jay/quote-alter-table-column-name Jinzhu 2015-06-30 16:39:57 +08:00
  • 5ddca7c427 Fix table name for association Jinzhu 2015-06-30 10:39:29 +08:00