847 Commits

Author SHA1 Message Date
biju-kalissery
7ae3729033 error handling refinements ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:14:05 -04:00
biju-kalissery
e0821942c1 error handling refinements ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:13:18 -04:00
biju-kalissery
f8dd9d077d enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:12:00 -04:00
biju-kalissery
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 2015-09-08 14:10:46 -04:00
biju-kalissery
10cba1556b enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:06:45 -04:00
biju-kalissery
f6873437f4 error handling cleanup ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:05:45 -04:00
biju-kalissery
a3b89f8100 enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:04:43 -04:00
biju-kalissery
a739f8b035 enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 14:04:10 -04:00
biju-kalissery
b71fda1a1a skip identity test for table without id column for mssql ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 13:57:14 -04:00
biju-kalissery
93a2c6827d optionally enabling identity value in SQL INSERT for MS SQL ref: https://github.com/jinzhu/gorm/issues/647 2015-09-08 13:55:01 -04:00
Jinzhu
447885d98f Merge pull request #645 from hobeone/master
Change logger to use an interface.
2015-09-03 07:43:35 +08:00
Daniel Hobe
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.
2015-09-02 09:37:44 -07:00
Jinzhu
d3fea6c535 Fix check HasIndex 2015-09-02 11:34:14 +08:00
Jinzhu
b3d0898bf3 Add safeMap back 2015-08-31 15:07:06 +08:00
Jinzhu
8e415788d5 Update Document 2015-08-30 07:28:05 +08:00
clinyong
fc8f0e53c8 add toc to documentation 2015-08-26 18:15:58 +08:00
Jinzhu
1d5f5f43f3 Support create/drop multiple tables 2015-08-26 11:54:07 +08:00
Jinzhu
9303e070c8 Add codeclimate 2015-08-22 08:46:46 +08:00
Jinzhu
f6f66a60b2 Document ModifyColumn, DropColumn 2015-08-19 22:47:38 +08:00
Jinzhu
44ae41e9b5 Update TODO, refer https://github.com/qor/qor/tree/master/validations for validations 2015-08-19 22:31:52 +08:00
Jinzhu
92e0809716 Don't save associations if has any error happened 2015-08-18 11:09:03 +08:00
Jinzhu
81c00fdc8f Don't add duplicated error 2015-08-18 11:09:03 +08:00
Jinzhu
24aeec7a1e Merge pull request #625 from wallclockbuilder/patch-1
Add documentation info
2015-08-18 09:24:24 +08:00
Jinzhu
9982134955 Fix preload many2many with multiple primary keys 2015-08-18 09:19:50 +08:00
Mawueli Kofi Adzoe
8f901b4b55 Add documentation info 2015-08-18 01:03:00 +00:00
Jinzhu
6a6c1bf762 Remove not necessary PreloadWithJoin 2015-08-18 08:05:44 +08:00
Jinzhu
7ec2b87312 Add more preloading many2many tests 2015-08-18 07:47:00 +08:00
Jinzhu
a24417824d More improvements for preload many2many 2015-08-18 07:43:08 +08:00
kimiby
07571d1adf increase performance m2m preload 2015-08-17 22:28:40 +03:00
Jinzhu
e2689d335b Merge branch 'kimiby-many2many_preload' 2015-08-17 23:11:54 +08:00
Jinzhu
f8e2f04562 Some Tweaks for Preload Many2Many, Add tests with inline conditions 2015-08-17 23:09:07 +08:00
Jinzhu
27511118fe Update Preload Many2Many tests 2015-08-17 22:19:10 +08:00
Jinzhu
3ca4a72a4c Handle DB error in callbacks 2015-08-17 16:50:42 +08:00
Jinzhu
018a7e69ec Handle DB error in callbacks 2015-08-17 16:38:01 +08:00
kimiby
281c5d10f6 preload_m2m improve 2015-08-16 12:36:23 +03:00
kimiby
f35dee5531 preload_m2m fix and test 2015-08-16 12:25:25 +03:00
kimiby
fbce0d98f6 m2m preload utils 2015-08-16 10:35:58 +03:00
kimiby
42c3f39163 m2m preload 2015-08-16 10:10:11 +03:00
Jinzhu
dd0d4d931f Add errorsInterface 2015-08-14 14:53:26 +08:00
Jinzhu
0996ddb604 Rename Errors to GetErrors 2015-08-14 12:29:53 +08:00
Jinzhu
309740983e Add Errors 2015-08-14 11:04:05 +08:00
Jinzhu
e1ce3b7066 Merge branch 'jaytaylor-jay/ddl-errors' 2015-08-13 09:09:37 +08:00
Jinzhu
197ae0e893 Fixed detecting pointers as a Scanner. thanks @NOX73 2015-08-13 09:05:35 +08:00
Jinzhu
905b6232a3 Fix can't call callbacks for embedded pointers 2015-08-13 09:04:21 +08:00
Leon Maia
ff3c23c9e9 fixes #593 - Dont include quotes on dest table 2015-08-13 09:04:21 +08:00
Jinzhu
ab1832b9a5 Handle children db's Error in callbacks 2015-08-13 09:04:21 +08:00
Jay Taylor
17917d49d8 Reverted to original `NewRecord' func as per @jinzhu's feedback. 2015-08-12 09:32:18 -07:00
Jinzhu
1d4f908ea2 Fixed detecting pointers as a Scanner. thanks @NOX73 2015-08-12 22:28:01 +08:00
Jinzhu
7fcb3e889f Merge pull request #600 from jaytaylor/jay/current_database
`CurrentDatabase' implementation.
2015-08-12 22:03:49 +08:00
Jay Taylor
526fff01b7 Merge branch 'jay/current_database' into jay/ddl-errors 2015-08-11 09:05:53 -07:00