Jinzhu
f926dd9f9f
Revert "Use int64 for limit/offset values to ensure values > 32-bit int are addressable."
2016-06-16 16:31:50 +08:00
Jinzhu
8117553fcb
Merge pull request #1071 from thephred/multiple_indexes
...
Add support for multiple indexes seperated by commas for issue #884
2016-06-16 08:50:36 +08:00
Jinzhu
300edb5bca
Merge pull request #1064 from jaytaylor/jay/limit-offset
...
Use int64 for limit/offset values to ensure values > 32-bit int are addressable.
2016-06-16 08:48:43 +08:00
Michael Goff
e7f00bd2cd
Add support for multiple indexes seperated by commas for issue #884
2016-06-15 16:06:22 -07:00
Jay Taylor
9b0fb2feb9
Use int64 for limit/offset values to ensure values greater than max 32-bit
...
integer are addressable.
2016-06-08 17:03:22 -07:00
Jinzhu
bf0e236078
Fix get default value from blank primary field
2016-06-02 11:06:44 +08:00
Jinzhu
dca5e54f8b
Merge pull request #1038 from RichardKnop/bugfix/preload-panic
...
Fixed an occurrence of a panic while preloading non existent fields.
2016-06-01 23:10:28 +08:00
Jinzhu
09427a07b2
Merge pull request #1052 from stroborobo/fix-polymorphic-preload
...
Add support for polymorphic preload
2016-06-01 22:51:20 +08:00
Jinzhu
2631d6745c
Merge pull request #1046 from andreynering/sqlite-testing-windows
...
Allow run tests for SQLite on Windows
2016-06-01 22:43:58 +08:00
Björn
fcf8dd4e23
Add support for polymorphic preload
...
Fixes #1051
2016-06-01 13:46:45 +02:00
Andrey Nering
7248671c9a
Allow run tests for SQLite on Windows
2016-05-28 13:49:32 -03:00
Richard Knop
8dfcab0f7f
Fixed an occurence of a panic while preloading non existent fields.
2016-05-24 00:54:53 +08:00
Jinzhu
27522453de
Merge pull request #1031 from nkovacs/add-foreign-key-panic-fix
...
fix panic in AddForeignKey on mysql dialect
2016-05-22 19:10:33 +08:00
Nikola Kovacs
7983fc6269
fix panic in AddForeignKey on mysql dialect
2016-05-22 09:58:37 +02:00
Jinzhu
4c9c024939
Merge pull request #1029 from nkovacs/mysql-foreign-key-length-fix
...
Mysql foreign key length fix
2016-05-22 08:00:40 +08:00
Nikola Kovacs
6eb73ae654
Fix too long foreign key names in mysql.
...
The dialect must define its own foreign key generator method.
The previous default is available as a method on gorm.DefaultForeignKeyNamer
and can be embedded in other dialects.
The mysql dialect uses the first 24 characters plus an sha1 hash of the
full key name if the key name is more than 64 characters.
2016-05-22 00:13:26 +02:00
Nikola Kovacs
58ce6153e2
don't test AddForeignKey on sqlite
2016-05-21 23:19:41 +02:00
Nikola Kovacs
ed9cfac496
add failing test for long foreign keys in mysql
2016-05-21 19:12:02 +02:00
Jinzhu
57c72125b3
Merge pull request #1001 from stroborobo/assoc-error
...
association: dont execute Append/Replace/Delete if Error already present
2016-05-09 22:47:58 +08:00
Jinzhu
0fd2fd66d5
Refactor handleHasManyPreload
2016-05-09 22:42:07 +08:00
Jinzhu
4786e830d6
Fix create join table
2016-05-09 22:32:33 +08:00
Dirk-Jan
d02c2a37ea
Improved preload m2m performance
2016-05-09 14:24:53 +02:00
Björn
f159fa3d74
association: dont execute Append/Replace/Delete if Error already present
2016-05-06 14:10:43 +02:00
Jinzhu
bf413d67d3
Merge pull request #959 from vibhavp/master
...
Fix postgres' HasForeignKey
2016-05-04 21:22:04 +08:00
Jinzhu
34482e028f
Update README
2016-05-04 21:13:24 +08:00
Jinzhu
1073563f1e
Merge pull request #987 from moberemk/patch-1
...
Properly quotes column names in post-insert SELECT
2016-05-04 21:04:23 +08:00
Jinzhu
c669e4b791
Set AUTO_INCREMENT if field is an auto increment field
2016-05-04 10:37:31 +08:00
Mark Oberemk
3b85ddcc9a
Properly quotes column names in post-insert SELECT
...
This commit closes #979 by fixing the post-insert SELECT call
2016-05-02 12:25:04 -04:00
Jinzhu
465f8ea05b
Fix ignore fields
2016-05-02 19:34:11 +08:00
Vibhav Pant
e38e096ca0
Fix postgres' HasForeignKey
2016-04-11 18:48:39 +05:30
Jinzhu
5174cc5c24
Only get address from non pointer when call method, fix #912
2016-04-04 22:49:28 +08:00
Jinzhu
9fd05d1bad
Print warning message when using unaddressable value with Update
2016-04-04 21:33:11 +08:00
Jinzhu
c49e68fac2
Make Update works with unaddressable value
2016-04-04 20:57:42 +08:00
Jinzhu
2530dcbccd
Quote order column name, fix #918
2016-03-23 10:29:52 +08:00
Jinzhu
7d5d171168
Merge pull request #919 from nkovacs/patch-1
...
fix mysql HasForeignKey
2016-03-23 07:13:27 +08:00
Nikola Kovacs
1ac3eedca1
fix mysql HasForeignKey
2016-03-22 13:49:22 +01:00
Jinzhu
021d7b3314
Fix migrate indexes with CreateTable, AutoMigrate for soft delete
2016-03-17 18:12:25 +08:00
Jinzhu
8c099e0945
Fix AddUniqueIndex with soft delete
2016-03-17 18:09:21 +08:00
Jinzhu
55a8e63aad
If size haven't been set, use `text` as string's default type for postgres, close #910
2016-03-16 23:06:27 +08:00
Jinzhu
83002c4d5f
Include default search attributes when query with Join, close #906
2016-03-14 08:05:45 +08:00
Jinzhu
1819dda80a
Export LogWriter interface
2016-03-10 17:38:52 +08:00
Jinzhu
7c43d9fc36
Fix scan columns with same name
2016-03-10 17:35:19 +08:00
Jinzhu
846a2d401a
Fix scan columns with same name
2016-03-10 17:13:48 +08:00
Jinzhu
bd99af5067
Fix GORM with Go 1.4 #892
2016-03-09 20:44:31 +08:00
Jinzhu
8de97c2883
Refactor Scope updatedAttrsWithValues
2016-03-09 16:45:53 +08:00
Jinzhu
a0aa21aec5
Refactor
2016-03-08 22:29:58 +08:00
Jinzhu
d08894cd69
Rename test files
2016-03-08 22:00:15 +08:00
Jinzhu
9d57c6b961
Merge pull request #794 from jinzhu/v1.0_dev
...
The first public release
2016-03-08 12:20:12 +08:00
Jinzhu
2e9d5e6f76
Test overwrite foreign keys
2016-03-07 23:51:04 +08:00
Jinzhu
2c089573cd
Add tests for override belogns to foreign keys with tag
2016-03-07 23:35:31 +08:00