Commit Graph

1284 Commits

Author SHA1 Message Date
Christopher 401f4ee8ff Implementing elseif for conversion of Default (#1173)
Before this commit the Default would be reset to 0 every time it is not true. This results in an issue when true is converted to 1 and 1 is not true, resulting in a conversion to 0.

Signed-off-by: Christopher Dziomba <christopher.dziomba@gmail.com>
2018-12-11 22:18:28 +08:00
Lunny Xiao fd49db598f
update chinese readme 2018-12-05 16:24:22 +08:00
Slory7 b07c406703 fix session_find & session_get getCacher param error (#1131)
* fix session_delete getCacher tablename param error

* fix session_find & session_get getCacher  param error
2018-11-03 00:17:11 +08:00
Slory7 01dd69d390 fix session_delete getCacher tablename param error (#1126) 2018-10-30 13:21:39 +08:00
mars 3add351809 Add version uint type support (#1125)
* fix panic when use version with uint32 type

* fix panic when use version with uint32 type

* Code refactoring
2018-10-27 21:20:00 +08:00
Lunny Xiao 1f39c590c6
update go.mod 2018-10-23 17:52:55 +08:00
Lunny Xiao 3c5e41a5bf
add mysql utf8mb4 tests (#1120) 2018-10-18 20:15:27 +08:00
Lunny Xiao 1a7b21155b
Add query slice string (#1114)
* add query slice string

* fix tests
2018-10-15 13:03:43 +08:00
Lunny Xiao 3e8290cc94
Add drone ci (#1092)
* add drone ci

* add db tests on drone

* fix drone

* update drone

* fix drone config

* improve drone ci

* improve postgres

* update mymysql drone config

* comment codecov on drone ci
2018-10-08 16:53:36 +08:00
Lunny Xiao 7a9249de33
Get adds context cache feature (#1102)
* context

* add context cache feature

* remove global context cache

* remove global context cache

* reset statment

* fix bug

* remove unused params

* refactor ContextCache

* refactor ContextCache

* update README

* update README

* disable global cache on context cache test
2018-09-25 21:31:44 +08:00
Lunny Xiao fa23a9774a
PingContext test (#1103) 2018-09-23 13:22:18 +08:00
Lunny Xiao 1261905a94
update readme 2018-09-21 10:04:58 +08:00
Lunny Xiao 68af41e764
add unvalid pk test (#1100) 2018-09-17 22:46:19 +08:00
Lunny Xiao 41498e6d63
add test for <- tag (#1099) 2018-09-17 22:46:07 +08:00
BetaCat eb27fffacf enhancement: auto-transaction (#1093)
* enhancement: auto-transaction

* auto transaction
2018-09-17 22:45:49 +08:00
BetaCat 45f019c574 fix bug in sqlite db name parsing (#1096) 2018-09-12 09:44:34 +08:00
Lunny Xiao 270035c70f
Add more methods for EngineInterface (#1091)
* add more methods for EngineInterface

* more interfaces
2018-09-07 11:01:18 +08:00
zhanglin 4e21af9122 fix db default charset error (#1072)
* fix db default charset error

* add table charset empty check
2018-08-25 20:34:45 +08:00
aojianwu 5b080b7495 缺少sqlite库 (#1083) 2018-08-24 16:02:08 +08:00
Lorenz Brun c5c275a261 Propagate errors from SQL row reading (#1079)
Currently errors while data is being read are being swallowed and result in a truncated result set, this fixes that and properly returns an error and not an incomplete result.
2018-08-23 14:11:23 +08:00
Lunny Xiao e88d320934
Merge branch 'master' of github.com:go-xorm/xorm 2018-08-09 22:38:41 +08:00
Lunny Xiao 8668e25c4e
update CI 2018-08-09 22:37:36 +08:00
qianguozheng 0b0a419f59 Fix compile error (#1042)
engine.ShowSQL is a method, not variable anymore
2018-08-09 21:07:07 +08:00
Lunny Xiao 1eee8a367e
fix #997 group by (#1065) 2018-08-09 14:37:44 +08:00
Lunny Xiao 4ce90f9a62
Exec support builder (#1064) 2018-08-09 13:09:54 +08:00
陈文强 4b224e8823 Fix genUpdateColumns() should not ignore soft delete column when unscoped (#1051) 2018-07-26 20:05:25 +08:00
Bo-Yi Wu 545f30f5cc just return error instead. (#1046) 2018-07-22 22:43:48 +08:00
Lunny Xiao ad69f7d8f0
performance improvement via string builder (#1036) 2018-07-11 08:59:00 +08:00
DrWrong(Yuhang) f16ce722ec Fix BUG: Update statement build function should ingore ONLYFROMDB fields (#1012)
* Fix BUG: Update statement build function should ingore ONLYFROMDB fields

* Add test case

* Modify test case
2018-06-23 14:59:01 +08:00
Lunny Xiao 1de9d224b6
don't keep packages cache (#1016) 2018-06-23 13:49:32 +08:00
Lunny Xiao ee5b31ecae
add support for mulitple transactions on one session (#1015) 2018-06-20 17:14:43 +08:00
DrWrong(Yuhang) a8bd843a55 Change pgx driver (#996)
* Change pgx driver

* Add test case

* Fix bug
2018-06-06 16:43:14 +08:00
Lunny Xiao ab17aa2203
Add more test for query (#932)
* add more test for query

* fix tests
2018-05-08 17:44:15 +08:00
Lunny Xiao d85bb4911c
add opencollective (#926) 2018-05-04 13:45:50 +08:00
Lunny Xiao 0f339654dd
fix cols and distinct conflicts (#927) 2018-05-04 13:09:54 +08:00
Lunny Xiao 12e0367559
add more tests for Sync2 (#925) 2018-05-04 10:51:34 +08:00
Lunny Xiao ae0364a057
add more test for join find (#922) 2018-05-02 17:53:17 +08:00
Lunny Xiao a491afac18
fix tablename bug when sync2 (#921) 2018-05-02 16:46:39 +08:00
Lunny Xiao 9680df5445
remove trace code 2018-05-02 13:41:40 +08:00
Lunny Xiao d1e0fe932e
add testing for update via condition bean (#918) 2018-04-29 22:09:22 +08:00
Lunny Xiao 44623fc395
Cache limit test (#917)
* add test for cache with limit

* change the version
2018-04-29 20:36:55 +08:00
Lunny Xiao e3550c7969
fix some bug on extends find (#916) 2018-04-29 19:58:25 +08:00
谷溪 d966376e44 grammar mistakes in output error message (#909)
* grammar mistakes in output error message

`Not found table` => `Table not found`
`Field is not exist` => `Field does not exist`

* Update error.go
2018-04-23 16:57:59 +08:00
Lunny Xiao e5c980f7b6
add test for insert anonymous struct (#904) 2018-04-19 08:25:31 +08:00
Lunny Xiao fc1b13e0d8
v0.6.6 2018-04-13 17:45:25 +08:00
Lunny Xiao 636ccefbc7
fix update map with table name (#888)
* fix update map with table name

* fix bug update map when cache enabled

* refactor cacheInsert

* fix cache test
2018-04-11 23:09:46 +08:00
Lunny Xiao bfdf773629
fix tablename bug (#887)
* fix tablename bug

* fix test
2018-04-11 18:09:16 +08:00
Lunny Xiao 5c2af83817
add test and remove unused warn log (#886) 2018-04-11 15:39:04 +08:00
Lunny Xiao c8ae6fa95b
add test for tablename (#885) 2018-04-11 13:53:09 +08:00
Lunny Xiao 3ef987ad24
add test for update map (#883) 2018-04-11 13:37:05 +08:00