Commit Graph

18 Commits

Author SHA1 Message Date
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 6d11913765
Add support subquery on SetExpr (#1428)
* add support subquery on SetExpr

* fix tests
2019-09-23 23:34:26 +08:00
Lunny Xiao 17592d96b3
Add insert select where support (#1401) 2019-08-22 23:40:23 +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 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 e5c980f7b6
add test for insert anonymous struct (#904) 2018-04-19 08:25:31 +08:00
Lunny Xiao bd20c37bfb
Add SetSchema for engine (#876)
* add SetSchema for engine

* fix user

* fix postgres with schema

* fix test

* fix test

* fix test

* fix tablename

* refactor tableName

* fix schema support

* improve the interface of EngineInterface
2018-04-10 09:50:29 +08:00
Lunny Xiao 5275c0de3f
add tests for insert custom struct types (#816) 2017-12-27 21:35:52 -06:00
Lunny Xiao 109cb1a7d0 Add support Engine Group (#748)
* add support group engine

* revert code

* add NewGroup function

* add engine group policy

* rename file name

* modify policy interface

* remove Init function from policy interface

* refactor Group Policy

* rename and comments

* rename and bug fix for WeightRoundRobinPolicy

* modify Slave function

* modify Slave function and add LeastConnPolicy

* use original Engine and Session

* remove unused count variables

* fix bug on NewEngineGroup

* remove unused method

* improve range and refactor

* add some comments and refactor

* implement GroupPolicy of GroupPolicyHandler

* refactor

* simple code

* add tests support for EngineGroup & fix some bugs

* improve the NewEngineGroup interface

* change the default policy of engine group

* fix some tests
2017-10-16 15:28:13 +08:00
Lunny Xiao 0f250847e5 add more tests for created int64 (#715) 2017-09-10 11:55:24 +08:00
Lunny Xiao 00da75294f add more test for time default value (#714) 2017-09-10 10:51:47 +08:00
Lunny Xiao 265dd66928 fix bug on cache delete (#703)
* fix bug on cache delete

* fix cache issues and improve the tests
2017-09-09 11:03:34 +08:00
Lunny Xiao 240b4d97ef add more tests (#597) 2017-05-31 11:04:09 +08:00
Henry Huang 9d7e85c39d update for valueof interface (#578) 2017-05-22 23:03:57 +08:00
biless a012756d38 fix pk can't set value when pk is point value or rename (#588)
* fix pk can't set value when pk is point value

* Revert "fix pk can't set value when pk is point value"

This reverts commit e78c076e57.

* fix pk can't set value when pk is point value or rename

* remove trace

* fix insert nil pk in pg
2017-05-18 10:37:20 +08:00
Lunny Xiao bdb225ceb5
add test for InsertOne to confirm #545 2017-03-26 21:26:02 +08:00