Commit Graph

1428 Commits

Author SHA1 Message Date
BetaCat 4b0ff8ad27 remove QuoteStr() usage in dialects (#1364) 2019-07-24 13:22:14 +08:00
BetaCat 9b08f9494f document of FindAndCount() (#1365) 2019-07-24 13:02:59 +08:00
BetaCat 18b32486cf remove QuoteStr() usage (#1360) 2019-07-24 09:41:06 +08:00
BetaCat 674c9089df make sure timeout in context timeout test (#1363) 2019-07-23 15:35:33 +08:00
Cheng Lu 62d884e8f1 use alias 'as.*' in oracle query with join (#1355) 2019-07-16 09:21:31 +08:00
Lunny Xiao f3e6c3a26b
fix go mod (#1350) 2019-07-07 20:06:42 +08:00
Talha Ansari 9016f95a15 reflect.Value.Bytes() should only be called when reflect.Value.Kind() is reflect.Slice, and not reflect.Array (#1346) 2019-07-05 10:59:57 +08:00
Marián Skrip 4c806608ab Allow adding prefix for fields with `extends` tag (#1284)
Added new syntax like `extends('Prefix')` to enable matching all
extended fields as 'PrefixFieldName'.

Close go-xorm/xorm#1270
2019-06-23 10:44:44 +08:00
Lunny Xiao f1b4f83684
fix no rows return error when close (#1334) 2019-06-20 23:12:08 +08:00
__simple d0827bfc00 Update README_CN.md (#1331)
修改错别字
2019-06-19 10:36:23 +08:00
Lunny Xiao c9b14f9487
move depends package from github.com to customize domain (#1327) 2019-06-17 13:38:13 +08:00
Lunny Xiao 7c4e044547
fix show SQL when set logger (#1315) 2019-06-06 14:26:23 +08:00
Masaki.Yamamoto 8a61b3a8a9 Fix spelling inconsistency (#1317) 2019-06-06 10:55:52 +08:00
StarUDream 6a1dd59737 add quote within the table name (#1285) 2019-05-06 16:23:39 +08:00
宋小北 ce804aee6c Unknown colType DOUBLE UNSIGNED (#1274) 2019-04-19 16:28:27 +08:00
Hac 8557fec079 Let defaultJsonHandler be a json handler interface. (#1269) 2019-04-11 16:33:37 +08:00
jixiuf 06528a4d83 add func (eg *EngineGroup) Context(ctx context.Context) *Session (#1267) 2019-04-10 11:27:55 +08:00
techknowlogick 617e0ae295 clean up go modules (#1260) 2019-03-31 19:39:43 +08:00
Lunny Xiao 5ef12eab78
make json as interface (#1248) 2019-03-29 14:32:36 +08:00
Wendell Sun 1c2d47e0da add deleted condition for Update operation (#1249) 2019-03-13 19:02:41 +08:00
yanser c790592482 Update README.md file (#1246)
Update README
2019-03-09 23:07:35 +08:00
faith e410f04aaf Update README.md (#1228)
sess 修改为 session
2019-02-13 14:43:01 +08:00
button-chen ee64beb73b fix bug in oracle: engine.Table(tablename).Exist() (#1227) 2019-02-13 12:37:14 +08:00
Lunny Xiao 1bcc25420d
Add tests for tidb (#1207)
* add tests for tidb

* ignore select for update tests
2019-02-01 11:31:51 +08:00
xutao 52b85c2f7e fix excute GetIndexes error with sepcial postgresql index (#1215)
Fixed #1183
2019-01-31 14:48:55 +08:00
Lunny Xiao af992d69a7
update go mod (#1212) 2019-01-24 21:13:39 +08:00
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