Commit Graph

1352 Commits

Author SHA1 Message Date
Lunny Xiao 611c31fa18
update go mod (#1211) 2019-01-24 21:04:41 +08:00
Lunny Xiao 18f6311ad1
Update go mod (#1210)
* update go mod dependency files

* add go mod build on ci
2019-01-24 15:20:02 +08:00
Lunny Xiao 0d2c78dab6
improve tests (#1206) 2019-01-23 16:11:07 +08:00
Lunny Xiao ff094ebc3e
fix mssql connstr bug (#1205) 2019-01-23 15:49:33 +08:00
Lunny Xiao 17b9cc7330
Add mssql ci test (#1203)
* add mssql ci test

* fix mssql ci

* check test databases

* fix ci

* fix postgres schema tests

* fix ci on postgres

* fix insert map bug

* fix insert map bug

* fix bug

* fix insert map bug

* fix create schema on tests

* fix mssql tests

* fix insert return id bugs on mssql

* add head comments
2019-01-22 23:59:58 +08:00
Lunny Xiao 971629c4f2
add more tests for rows (#1201) 2019-01-20 21:49:23 +08:00
Lunny Xiao e1f788fb7e
remove unused_code (#1200) 2019-01-20 19:54:43 +08:00
Lunny Xiao e6999cce77
Add more tests for TableName (#1199)
* add more tests for TableName

* fix test counts
2019-01-20 17:50:20 +08:00
Lunny Xiao 6fe3ab6075
fix #1075 and replace #1076 (#1101)
* fix #1075 and replace #1076

* fix bug when session resue
2019-01-20 12:45:38 +08:00
Lunny Xiao 5271caa592
Add insert map support (#940)
* add insert map

* fix insert map bug when cache enabled
2019-01-20 12:16:16 +08:00
Lunny Xiao 731b056a56
Join support builder (#1002)
* join support builder

* add tests

* fix tests

* fix tests

* fix join sub query
2019-01-20 11:53:53 +08:00
Lunny Xiao c68531db53
Add lasterror on statement to return errors when chain operations (#1151)
* add lasterror on statement to return errors when chain operations

* add tests for last error

* refactor error
2019-01-20 11:45:42 +08:00
Lunny Xiao 58b4f7f109
add tests for get interface (#1194) 2019-01-20 11:09:37 +08:00
Lunny Xiao 5750e3f90a
Add context support (#1193)
* add context support

* improve pingcontext tests
2019-01-20 11:01:14 +08:00
Lunny Xiao 229c3aaf04
Add circleci 2 support (#1198)
* add circleci 2 support

* ignore golint currently

* remove unused circle1 config file
2019-01-20 10:56:25 +08:00
Zsombor a6300f2a45 Fixing issue from go-gitea/gitea #5728 (#1192)
* Format boolean values to true/false even when it is returned as byte-slice,
* Fix the sequence generation, the proper sequence name is used (instead of 'table_id_seq'), and fix the next value be max+1 always
2019-01-16 11:26:49 +08:00
Zsombor 1cd2662be9 Fix exporting into Postgres, problems: (#1186)
* UUID and BOOL type shouldn't have a length field
 * Incorrect quoting cause that the column names are selected instead of the column values
2019-01-09 16:18:50 +08:00
喜欢兰花山丘 a8f0a7110a Update README_CN.md (#1179)
Fix Transaction param by README_CN.md
2018-12-20 16:05:00 +08:00
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