Commit Graph

1031 Commits

Author SHA1 Message Date
otiai10 ba12202af2 Enable to decline antuincrement on ID field 2015-11-21 18:15:47 +09:00
Jinzhu 2f9abdcf02 Fix preload many2many problem when no search results, #688 2015-11-16 12:20:00 +08:00
Jinzhu edee5f5b75 Merge pull request #720 from jseriff/master
Modify count detection regex to match parenthesis instead of starting a capture.
2015-11-16 11:18:52 +08:00
Jinzhu e7d209d71b Add Contributors link 2015-11-16 10:59:24 +08:00
Jinzhu 903e2db911 Add CONTRIBUTING.md 2015-11-16 10:57:12 +08:00
Jason Seriff a3c1fda757 Modify count regex to match parenthesis instead of starting a capture. Fixes #679 2015-11-10 14:51:16 -06:00
Jinzhu 611e613459 Merge pull request #709 from pacificporter/is_byte_array_or_slice
Fix panic() in isUUID()
2015-11-09 09:24:44 +08:00
Jinzhu 1c22149b3c Merge pull request #717 from brunoksato/master
Break [] byte, I was breaking another case
2015-11-09 09:24:12 +08:00
Bruno Sato b27ac1a996 I was breaking another case
EncryptedPassword []byte         `json:"-" sql:"encrypted_password;not null"`
2015-11-06 18:55:56 -02:00
HARUYAMA Seigo c68a386f91 Fix panic() in isUUID()
value with value.Kind() == reflect.Slice does not have value.Type().Len()
2015-11-01 01:15:06 +09:00
Jinzhu 67f88d977b Merge pull request #708 from pacificporter/is_byte_array_or_slice
Fix SqlTag() in case of ByteSlice
2015-10-31 18:12:38 +08:00
HARUYAMA Seigo 92f9584c83 Fix SqlTag() in case of ByteSlice 2015-10-31 16:23:55 +09:00
Jinzhu 0589d36e64 Merge pull request #706 from sulnedinfind/master
add binary UUID support to postgres
2015-10-29 22:23:35 +08:00
Yegor Wienski 3cb95264df add binary UUID support to postgres
Check if the value is a byte array of 16 bytes and its type is named "uuid" or "guid", and if so, use postgres `uuid` type.
2015-10-28 18:05:09 +03:00
Jinzhu 5f113dcb8d Merge pull request #704 from KarolBedkowski/fix_sqlite_column_detect
sqlite3: fix HasColumn - problem with detecting columns
2015-10-25 18:35:19 +08:00
Karol Będkowski 50e1d6526e sqlite3: fix HasColumn - problem with detecting columns
Handle table definitions like ", \"col"" and ",col".
2015-10-24 14:42:38 +02:00
Jinzhu 484fb30089 Merge pull request #697 from DSchalla/master
Fixed Typo in Default values Section
2015-10-21 11:26:02 +08:00
Daniel Schalla 2a004ca186 Fixed Typo in Default values Section 2015-10-18 17:52:33 +02:00
Jinzhu 96f2bc40c7 Merge pull request #695 from henriquemenezes/master
Fix where clause for string primary key when query value is numeric and starts with zero
2015-10-16 14:01:11 +08:00
Henrique Menezes e68fb8f9e2 Fix where clause for string primary key when query value is numeric and starts with zero 2015-10-16 00:49:47 -03:00
Jinzhu 20e37a0533 Merge pull request #691 from athurg/patch-1
Fix FirstOrXXX access invalid memory address
2015-10-13 00:07:15 +08:00
Athurg Feng f1decc2c3e Fix FirstOrXXX access invalid memory address
*DB is cloned, we should ALWAYS use the cloned pointer instead of original one.
2015-10-12 22:38:41 +08:00
Jinzhu ede940e82d Merge pull request #676 from nkovacs/unused-interface
remove unused tabler interface
2015-10-01 22:16:33 +08:00
Nikola Kovacs c691b33ce5 remove unused tabler interface 2015-10-01 10:25:02 +02:00
Jinzhu 8a2b73723d Better compatibility for complex sql type 2015-10-01 08:06:08 +08:00
Jinzhu eeb9ba2250 Fix query with Joins 2015-10-01 07:43:43 +08:00
Jinzhu 4da2c28d4d Fix data race warning when get cached model struct 2015-10-01 07:09:00 +08:00
Jinzhu 88188b6161 Respect Where when create index 2015-10-01 06:53:15 +08:00
Jinzhu 58596afda1 Replace many2many associations with empty 2015-09-30 21:30:58 +08:00
Jinzhu a480621b76 Fix extra updates when Append associations for many2many 2015-09-30 12:10:22 +08:00
Jinzhu 048963c568 Merge pull request #666 from defend7/sqlite_autoincrement
Support the AUTOINCREMENT keyword on SQLite.
2015-09-28 10:20:17 +08:00
Jinzhu e6ef3818bf Merge pull request #669 from nkovacs/addr-fix
Fix panic: reflect.Value.Addr of unaddressable value
2015-09-28 10:16:36 +08:00
Jinzhu 00fe20f8a8 Merge pull request #672 from ivpusic/master
do not execute buildSelectQuery twice
2015-09-28 10:09:44 +08:00
Ivan Pusic 246383326c do not execute buildSelectQuery twice
if buildSelectQuery() is executed twice, then we get more values in SqlVars than expected
2015-09-28 00:03:51 +02:00
Jinzhu 37bf87aa29 Fix can't load preload fields correctly 2015-09-26 00:41:07 +08:00
Jinzhu 198fc47051 Include all primary fields when build where conditions 2015-09-25 17:14:21 +08:00
Nikola Kovacs a8d7a5fa34 add test for unaddressable value in preload 2015-09-24 14:08:36 +02:00
Nikola Kovacs 7f1a4cf301 Fix panic: reflect.Value.Addr of unaddressable value 2015-09-24 13:34:51 +02:00
Vibhav Sreekanti 1d8292c5ab Support the AUTOINCREMENT keyword on SQLite.
Omit the "PRIMARY KEY" clause at the end of the create statement if
any column's SQL tags already contains the PRIMARY KEY constraint.
2015-09-20 10:58:12 -07:00
Jinzhu 19aacb8fbb Add index for deleted_at 2015-09-18 10:28:09 +08:00
Jinzhu 073fa4dc85 include order by for group SQL 2015-09-17 21:39:16 +08:00
Jinzhu 2a46856d52 Fix update fields having default with empty value 2015-09-14 23:41:14 +08:00
Jinzhu edc1f78530 Fix calculate fields for the first time 2015-09-11 07:36:48 +08:00
Jinzhu b46ca62c18 Fix ReturningStr when with schema name, fixes #650 2015-09-11 06:36:17 +08: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