Commit Graph

1362 Commits

Author SHA1 Message Date
Lunny Xiao 1735906dcc Support local sql log (#1338) 2019-10-21 03:42:26 +00:00
Lunny Xiao 0090e33224 Fix go mod and update version (#1460) 2019-10-16 06:55:10 +00:00
Lunny Xiao b81aa40128 Move github.com/go-xorm/xorm to xorm.io/xorm (#1459) 2019-10-15 05:15:41 +00:00
Lunny Xiao 33fc33b2f5
add support custom type Nullfloat64 (#1450) 2019-10-05 21:10:55 +08:00
Lunny Xiao 57a49c6c23
fix bug when query map condtion with no quote (#1449) 2019-10-05 14:36:18 +08:00
Lunny Xiao 6a47ef9b49
Don't warn when bool column default is 1 but not true (#1447)
* don't warn when bool column default is 1 but not true

* fix default case sensitive
2019-10-02 15:04:49 +08:00
Lunny Xiao 48579958d5
Fix sync2 with custom table name (#1445)
* fix sync2 with custom table name

* fix bug on postgres

* fix bug on postgres
2019-10-02 12:37:53 +08:00
Lunny Xiao da95db5ddc
fix bug when update with setexpr (#1446) 2019-10-02 08:14:48 +08:00
Lunny Xiao db25dfc84e
add tidb tests on drone ci (#1444) 2019-09-30 20:42:31 +08:00
Lunny Xiao 98db3ef013
improve sync2 (#1443) 2019-09-30 16:32:57 +08:00
Lunny Xiao c5ee68faa1
Fix wrong dbmetas (#1442)
* add tests for db metas

* add more tests

* fix bug on mssql
2019-09-30 15:09:57 +08:00
Lunny Xiao a5702e52b5
Fix default value parse bugs (#1437)
* fix default value

* fix default value tags

* fix postgres default

* fix default on postgres

* fix default on postgres

* fix mssql default
2019-09-29 12:31:06 +08:00
Lunny Xiao d6963b7d42
fix arg conversion (#1441)
* fix arg conversion

* fix bugs

* fix bug on postgres

* use traditional positional parameters on insert into select

* remove unnecessary tests
2019-09-28 18:02:19 +08:00
Lunny Xiao 9872e133cf
upgrade core (#1440) 2019-09-28 10:55:12 +08:00
Lunny Xiao d76126b2bd
add tests (#1439) 2019-09-27 23:05:23 +08:00
Lunny Xiao 3f2ca6e741
add go1.13 tests on drone (#1416) 2019-09-26 11:01:55 +08:00
Lunny Xiao 71947cf034
Fix bug on insert where (#1436)
* fix bug on insert where

* fix bug

* fix lint
2019-09-26 01:29:02 +08:00
Lunny Xiao 691f6e7698
fix bug when insert multiple slices with customize table name (#1433)
* fix bug when insert multiple slices with customize table name

* fix tests on mssql

* fix tests
2019-09-25 16:42:24 +08:00
Lunny Xiao 59ed80ce1a
fix insert where with bool bug on mssql (#1432) 2019-09-24 16:05:35 +08:00
Lunny Xiao 2fbb9cd8de
fix setexpr missing big quotes (#1431)
* fix setexpr missing big quotes

* fix tests

* fix tests
2019-09-24 12:58:25 +08:00
Lunny Xiao 6d11913765
Add support subquery on SetExpr (#1428)
* add support subquery on SetExpr

* fix tests
2019-09-23 23:34:26 +08:00
Lunny Xiao 201839c092
fix go mod (#1427) 2019-09-23 00:13:52 +08:00
Lunny Xiao d4419ac496
fix tests (#1429) 2019-09-22 23:13:55 +08:00
Lunny Xiao 57a7e4421e
Use strings.Builder instead of builder.StringBuilder (#1417)
* use strings.Builder instead of builder.StringBuilder

* fix dependency

* fix dependency
2019-09-06 22:15:04 +08:00
yudppp 61f1d19281 Remove unuse get cols code (#1413) 2019-09-05 16:14:27 +08:00
Lunny Xiao 76ca740a62
Add mssql ci test (#1410)
* add mssql ci test

* fix drone test
2019-09-04 12:33:44 +08:00
Lunny Xiao 17592d96b3
Add insert select where support (#1401) 2019-08-22 23:40:23 +08:00
Lunny Xiao b78ac8ce0a Use drone new format (#1388)
* use drone new format
2019-08-14 23:46:40 +08:00
Lunny Xiao ce79b1cf28 fix get customize type bug (#1382) 2019-08-05 17:05:42 +08:00
Lunny Xiao 9681be3e4d fix bugs (#1375) 2019-07-30 16:35:36 +08:00
Lunny Xiao 2ad174c078 update drone (#1374) 2019-07-30 15:31:23 +08:00
Lunny Xiao 73a7003f43 Add tests for get var (#1305)
* add test for SQL get
* fix tests
2019-07-30 00:02:45 +08:00
Lunny Xiao a691000f06 fix error when get null var (#890)
* fix error when get null var
* add support get for null var
* fix bug
2019-07-29 23:32:32 +08:00
BetaCat b757473de7 Remove quotestr totally (#1366)
* remove QuoteStr() totally

* update xorm.core -> v0.7.0

* update dialect Quote
2019-07-24 14:38:05 +08:00
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