Jinzhu
|
b8a74a80d7
|
Fix embedded struct with default value, close #3451
|
2020-09-11 11:18:54 +08:00 |
Jinzhu
|
70a7bd52ca
|
Support delete associations with Select when deleting
|
2020-09-10 21:46:18 +08:00 |
Jinzhu
|
2242ac6c0e
|
Fix tests & refactor for PR #3429
|
2020-09-09 10:31:48 +08:00 |
caelansar
|
aceb3dad3b
|
correct generated sql
|
2020-09-08 21:28:04 +08:00 |
Jinzhu
|
c70c097e88
|
Refactor format SQL for driver.Valuer
|
2020-09-08 19:11:29 +08:00 |
Jinzhu
|
c9d5c0b07a
|
Fix create database foreign keys for same type having has many/one & many2many relationships, close #3424
|
2020-09-08 18:25:29 +08:00 |
Jinzhu
|
05794298bd
|
Fix Save with specified table, close #3396
|
2020-09-06 12:22:08 +08:00 |
Jinzhu
|
d8ddccf147
|
Don't marshal to null for associations after preloading, close #3395
|
2020-09-04 19:09:51 +08:00 |
Jinzhu
|
28121d4455
|
Fix panic when batch creating from slice contains invalid data, close #3385
|
2020-09-03 20:59:41 +08:00 |
Jinzhu
|
dd0d74fad0
|
Fix transaction on closed conn when using prepared statement, close #3380
|
2020-09-03 19:16:55 +08:00 |
Jinzhu
|
3cd81ff646
|
Fix query with specified table and conditions, close #3382
|
2020-09-03 18:42:32 +08:00 |
Jinzhu
|
cf31508095
|
Fix tests_all.sh
|
2020-09-03 15:02:04 +08:00 |
Jinzhu
|
3cc7a30712
|
Fix tests/go.mod
|
2020-09-03 13:28:37 +08:00 |
Jinzhu
|
98e15e0b95
|
Setup DB's ConnPool in PrepareStmt mode, fix #3362
|
2020-09-03 12:54:26 +08:00 |
Jinzhu
|
48b395b760
|
returns ErrEmptySlice when creating with zero length slice
|
2020-09-03 11:32:30 +08:00 |
Jinzhu
|
fcb666cfa3
|
Fix associations using composite primary keys without ID field, close #3365
|
2020-09-03 10:58:48 +08:00 |
Jinzhu
|
130f24090d
|
update default_value_test
|
2020-09-02 21:03:47 +08:00 |
Jinzhu
|
dbe0f4d8d7
|
Allow use NULL as default value for string, close #3363
|
2020-09-02 20:15:12 +08:00 |
Jinzhu
|
680dda2c15
|
Fix combine conditions when using string conditions, close #3358
|
2020-09-02 20:09:51 +08:00 |
Jinzhu
|
dbaa6b0ec3
|
Fix Scan struct with primary key, close #3357
|
2020-09-02 16:14:26 +08:00 |
Jinzhu
|
d1e17d549f
|
request ColumnTypes after new session method
|
2020-09-01 20:53:54 +08:00 |
Jinzhu
|
e73147fa8e
|
Better support for scan into map, fix unfriendly data type for interface, close #3351
|
2020-09-01 17:45:14 +08:00 |
Jinzhu
|
e98a4a3a4e
|
Change default timeout interval to avoid test fail on CI
|
2020-09-01 14:01:59 +08:00 |
Jinzhu
|
308d22b166
|
Clean up associations before Preload, close #3345
|
2020-09-01 13:48:37 +08:00 |
Jinzhu
|
496db1f13e
|
Fix named argument with multiple line SQL, fix #3336
|
2020-08-31 15:45:56 +08:00 |
Jinzhu
|
9b0ad4730f
|
Squashed commit of the following:
commit 759038a126122d5b3323979fdd7d867a4ab85585
Author: Jinzhu <wosmvp@gmail.com>
Date: Mon Aug 31 12:06:31 2020 +0800
Add PreparedStmt tests
commit 066d54db1f
Author: 王岚 <wanglan.backend@bytedance.com>
Date: Fri Aug 28 18:40:59 2020 +0800
prepare_stmt add ctx
|
2020-08-31 12:08:33 +08:00 |
Jinzhu
|
b4166d9515
|
Fix V2 Save compatibility, close #3332
|
2020-08-30 10:21:11 +08:00 |
Jinzhu
|
59586dcd31
|
Fix unnecessary duplicated primary condition when using Save, close #3330
|
2020-08-29 23:02:19 +08:00 |
Jinzhu
|
06461b3254
|
GORM V2.0.0
|
2020-08-28 21:16:47 +08:00 |
Jinzhu
|
dacbaa5f02
|
Fix update attrs order
|
2020-08-27 19:52:01 +08:00 |
Jinzhu
|
cd54dddd94
|
Test update with GormValuer
|
2020-08-27 18:42:40 +08:00 |
Jinzhu
|
7a90496701
|
Test create from sql expr with map
|
2020-08-27 16:27:59 +08:00 |
Jinzhu
|
ce8853e7a6
|
Add GormValuer interface support
|
2020-08-27 15:03:57 +08:00 |
Jinzhu
|
3195ae1207
|
Allow override alias table in preload conditions
|
2020-08-25 18:59:19 +08:00 |
Jinzhu
|
3dfa8a66f1
|
Fix panic when delet without pointer, close #3308
|
2020-08-25 17:27:28 +08:00 |
Jinzhu
|
84dbb36d3b
|
Add Golang v1.15
|
2020-08-24 20:24:25 +08:00 |
Jinzhu
|
ebdb4edda8
|
Add AllowGlobalUpdate mode
|
2020-08-23 20:08:23 +08:00 |
Jinzhu
|
cc6a64adfb
|
Support smart migrate, close #3078
|
2020-08-23 18:16:12 +08:00 |
Jinzhu
|
3a97639880
|
Fix unordered joins, close #3267
|
2020-08-23 10:45:10 +08:00 |
Jinzhu
|
0c9870d1ae
|
Test Association Mode with conditions
|
2020-08-20 10:39:01 +08:00 |
Jinzhu
|
c1782d60c1
|
Fix embedded scanner/valuer, close #3283
|
2020-08-19 15:47:08 +08:00 |
Jinzhu
|
b5de8aeb42
|
Fix overrite SELECT clause
|
2020-08-18 18:58:53 +08:00 |
Jinzhu
|
50826742fd
|
Add error gorm.ErrInvalidData
|
2020-08-18 18:00:36 +08:00 |
Jinzhu
|
dc48e04896
|
Fix nested embedded struct, close #3278
|
2020-08-18 11:21:40 +08:00 |
Jinzhu
|
9fcc337bd1
|
Fix create from map
|
2020-08-17 17:41:36 +08:00 |
Jinzhu
|
2a716e04e6
|
Avoid panic for invalid transaction, close #3271
|
2020-08-17 12:16:42 +08:00 |
Jinzhu
|
2faff25dfb
|
Fix FirstOr(Init/Create) when assigning with association
|
2020-08-13 18:38:39 +08:00 |
Jinzhu
|
2c4e857125
|
Should ignore association conditions when querying with struct
|
2020-08-13 18:09:04 +08:00 |
Jinzhu
|
dea93edb6a
|
Copy TableExpr when clone statement
|
2020-08-13 16:28:21 +08:00 |
Jinzhu
|
ecc946be6e
|
Test update from sub query
|
2020-08-13 16:05:06 +08:00 |
Jinzhu
|
045d5f8538
|
Fix count with join and no model, close #3255
|
2020-08-13 12:18:36 +08:00 |
Jinzhu
|
7d45833f3e
|
Fix driver.Valuer interface returns nil, close #3248
|
2020-08-13 12:05:55 +08:00 |
Caelansar
|
15b96ed3f4
|
add testcase
|
2020-08-10 15:34:20 +08:00 |
Jinzhu
|
39c8d6220b
|
Fix soft delete panic when using unaddressable value
|
2020-08-06 17:48:46 +08:00 |
Jinzhu
|
3df249c127
|
Use table expr when inserting table, close #3239
|
2020-08-06 17:12:31 +08:00 |
Jinzhu
|
da1e54d5ab
|
Add sql-cli
|
2020-08-06 15:37:36 +08:00 |
Jinzhu
|
ff985b90cc
|
Fix failed to guess relations for embedded types, close #3224
|
2020-08-04 12:25:34 +08:00 |
Jinzhu
|
c11c939b95
|
callbacks support sort with wildcard
|
2020-08-03 21:48:36 +08:00 |
Jinzhu
|
f83b00d20d
|
Fix Count with Select when Model not specfied, close #3220
|
2020-08-03 10:30:25 +08:00 |
Jinzhu
|
2676fa4fb8
|
Remove autoincrement tag for join table, close #3217
|
2020-07-31 18:19:25 +08:00 |
Jinzhu
|
81c68db87f
|
Fix zero time failed on mysql 8
|
2020-07-30 17:56:16 +08:00 |
lninl
|
7bb883b665
|
Auto creating/updating time with unix (milli) second (#3213)
* Auto creating/updating time with unix (milli) second
* add test for 'Auto creating/updating time with unix (milli) second'
|
2020-07-30 17:39:57 +08:00 |
Jinzhu
|
47a5196734
|
Fix uninitialized Valuer return time.Time, close #3214
|
2020-07-30 17:37:07 +08:00 |
Jinzhu
|
7c2ecdfc1c
|
Fix use pointer of Valuer as foreign key, close #3212
|
2020-07-30 10:23:35 +08:00 |
Jinzhu
|
c7667e9299
|
Refactor Prepared Statement
|
2020-07-28 14:46:48 +08:00 |
Jinzhu
|
6ed697dd02
|
TestFirstOrCreateWithPrimaryKey, close #3192
|
2020-07-23 23:41:56 +08:00 |
Jinzhu
|
da16f7b475
|
Create extension uuid-ossp for postgres test database
|
2020-07-22 12:13:40 +08:00 |
Jinzhu
|
0546b59743
|
Fix save many2many associations with UUID primary key, close #3182
|
2020-07-22 11:28:00 +08:00 |
Jinzhu
|
5d05441067
|
Test From SubQuery with vars
|
2020-07-20 08:12:41 +08:00 |
Jinzhu
|
a0477f94dd
|
Allow Omit with Query, close #3165
|
2020-07-19 21:48:58 +08:00 |
Jinzhu
|
90183fadde
|
Allow advanced table with args
|
2020-07-19 21:30:24 +08:00 |
Jinzhu
|
362779575c
|
Fix Select with specific symbol, close #3157
|
2020-07-17 11:24:24 +08:00 |
Jinzhu
|
58e3241544
|
Fix Select with specific symbol, close #3158
|
2020-07-17 11:06:20 +08:00 |
Jinzhu
|
e83e210971
|
Update postgres DSN
|
2020-07-16 17:15:57 +08:00 |
Jinzhu
|
1f05cb7e55
|
Handle Associations with pointer of pointer, close #3130
|
2020-07-10 22:53:03 +08:00 |
Jinzhu
|
d4b462a351
|
Fix alias keyword with Table, close #3104
|
2020-07-10 21:11:28 +08:00 |
Jinzhu
|
33c48611b6
|
Fix customize table with Delete, close #3129
|
2020-07-10 13:08:29 +08:00 |
Jinzhu
|
c0319f6eed
|
Test map with named argument for raw sql
|
2020-07-10 12:52:01 +08:00 |
Jinzhu
|
bba569af2b
|
Add NamedArg support
|
2020-07-10 12:28:24 +08:00 |
Jinzhu
|
a8655f7947
|
Fix auto select with smaller struct for slices
|
2020-07-09 12:15:35 +08:00 |
Jinzhu
|
2ae0653af2
|
Fix ambiguous column when using same column name in join table, close #3120
|
2020-07-09 09:03:48 +08:00 |
Jinzhu
|
619cd332ec
|
Add index priority supports
|
2020-07-08 17:59:40 +08:00 |
Jinzhu
|
de482f57ff
|
Test raw sql with gorm.Expr
|
2020-07-06 15:47:33 +08:00 |
Jinzhu
|
b5725940e9
|
Test Select with Update Struct
|
2020-07-06 11:20:43 +08:00 |
Jinzhu
|
9a4941ba70
|
Test Order/GroupBy
|
2020-07-06 09:47:14 +08:00 |
Jinzhu
|
4e066c9590
|
Test Or
|
2020-07-05 12:23:45 +08:00 |
Jinzhu
|
1a2fabb34d
|
Test Not
|
2020-07-05 11:56:12 +08:00 |
Jinzhu
|
2416eabd3f
|
Change unique_idnex to UniqueIndex
|
2020-07-04 00:36:27 +08:00 |
Jinzhu
|
8100ac7663
|
Change default postgres DSN for github action
|
2020-07-03 09:27:24 +08:00 |
Jinzhu
|
2d945a9641
|
Switch pgx as default driver
|
2020-07-03 08:54:12 +08:00 |
SmallTianTian
|
3c03b6e527
|
fix no limit no offset. (#3101)
* fix no limit no offset.
* add test for playground.
|
2020-07-02 18:14:33 +08:00 |
Jinzhu
|
63e48191a8
|
Test failed to save association should rollback, close #3100
|
2020-07-01 21:28:19 +08:00 |
Jinzhu
|
d02b592c6c
|
Better support Count in chain
|
2020-07-01 10:19:52 +08:00 |
Jinzhu
|
9075b33620
|
Query with smaller struct
|
2020-07-01 08:56:21 +08:00 |
Jinzhu
|
929c0c576c
|
Test Hooks For Slice
|
2020-06-30 22:47:21 +08:00 |
Jinzhu
|
f5566288de
|
Add SetColumn, Changed method
|
2020-06-30 16:53:54 +08:00 |
Jinzhu
|
9bfe306975
|
Only query with readable fields
|
2020-06-27 08:04:12 +08:00 |
Jinzhu
|
cb5a35a807
|
Test group with table name
|
2020-06-26 08:39:18 +08:00 |
Jinzhu
|
4eae3fea41
|
Test group by with multiple columns
|
2020-06-25 23:37:49 +08:00 |
Jinzhu
|
f2b49437fb
|
Test set string field's default value to blank string
|
2020-06-25 22:48:10 +08:00 |