Commit Graph

1307 Commits

Author SHA1 Message Date
Lunny Xiao c2e915ffc1
fix typo 2017-07-31 20:26:13 +08:00
Lunny Xiao e963288b0b add Decr test (#666) 2017-07-27 17:57:38 +08:00
Lunny Xiao 4524e40dda add NotIn and more tests for tag (#665) 2017-07-27 17:48:19 +08:00
Lunny Xiao 60c6346a77 add more tests for rows (#664) 2017-07-27 14:38:39 +08:00
Lunny Xiao 8849fd919e refactor for sum methods (#663) 2017-07-27 14:13:26 +08:00
Lunny Xiao f1aebd5729 hide all undocument variables on session (#660) 2017-07-27 13:32:35 +08:00
Lunny Xiao 7c2d924794 tests for close and add IsClosed() method (#659) 2017-07-26 22:25:23 +08:00
Lunny Xiao a5a917d477 add mymysql tests (#656) 2017-07-25 17:51:20 +08:00
Lunny Xiao 463b4d8da7 add more tests for Delete (#655) 2017-07-25 17:09:10 +08:00
Lunny Xiao fbf37fc795 improve count usage (#654) 2017-07-25 16:50:20 +08:00
Lunny Xiao dbc493df5e multiple Cols support (#653) 2017-07-24 22:09:47 +08:00
Lunny Xiao 8cfde0eb4b fix Conds bug on Find and add test for FindAndCount (#652) 2017-07-24 21:26:14 +08:00
Lunny Xiao 1aa1846afb Revert "support reuse session to transaction (#650)" (#651)
This reverts commit c412be2365.
2017-07-23 09:52:08 +08:00
Lunny Xiao c412be2365 support reuse session to transaction (#650) 2017-07-23 09:15:44 +08:00
Lunny Xiao 305eb27bcf improve update error when no conent to be updated (#648) 2017-07-21 16:42:23 +08:00
Lunny Xiao 774f83c1bc add Exist functions (#640) 2017-07-14 09:20:13 +08:00
Yang Luo 78795d8f13 add Xorm Adapter for Casbin as cases (#639) 2017-07-11 22:53:39 +08:00
Oleh Herych 682b827c7e More clear log (#638)
I don't see `nil` in log. I suggest the next changes 

*Before*
```
INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [59639fb56d9d9437b707a434 58a313719fee7b336da70c45 Chocolate Mousse Torte fsqi 51339970   Dessert Seasonal berry sauce 0 0 0 1 false 2017-07-10 18:39:33 2017-07-10 18:39:33]
```

*After*
```
INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{"59639ec16d9d943782ce2f6c", "58a313719fee7b336da70c45", "Chocolate Mousse Torte", "fsqi", "51339970", "", "", "Dessert", "Seasonal berry sauce", 0, 0, 0, 1, false, "2017-07-10 18:35:29", "2017-07-10 18:35:29"}
```
2017-07-11 09:16:07 +08:00
Mamoru Murakami 39a812d59d Topic/fix cache uint (#635)
* modify cache_test for issues #330

* fix bugs cache key when pk is defined as uint (#330)

* add comment
2017-07-06 13:03:06 +08:00
Lunny Xiao 32d688fd96 close rows if possible (#629) 2017-06-25 17:35:04 +08:00
Lunny Xiao d9e6f21d60 fix bugs cols with incr when update (#623) 2017-06-20 15:43:21 +08:00
ka1em 6dd1a9db58 Fixed spelling mistakes (#622)
Fixed spelling mistakes
  Sacn ==Scan
2017-06-19 16:08:08 +08:00
Lunny Xiao 2af18acf72 add CondDeleted method (#620) 2017-06-15 20:09:46 +08:00
Lunny Xiao eb52e0e4ae add test for get slice (#619) 2017-06-15 10:12:30 +08:00
Lunny Xiao f86679d536 Add comment support on create table [mysql only currently] (#616)
* add comment support on create table

* remove wrong file
2017-06-14 14:16:40 +08:00
Lunny Xiao 233706969a
add SumInt method 2017-06-12 16:33:11 +08:00
Lunny Xiao e11235316c
change chatroom from gitter to discord 2017-06-12 11:16:18 +08:00
Lunny Xiao 1e055bac01 fix bug and catch more tests (#613) 2017-06-08 19:38:52 +08:00
Lunny Xiao 7a9bf19c65 move lifetime to a split file so that go1.1 is also work with this feature (#612) 2017-06-08 10:21:01 +08:00
Lunny Xiao 8a877636fd add custom SQL count support (#609)
* add custom SQL count support

* fix tests
2017-06-06 14:54:59 +08:00
Lunny Xiao a4a8e4a739 fix bug and add set conn max lifetime (#606)
* fix sqlite bug and add SetConnMaxLifetime

* add parse for composite keys

* required go 1.5+
2017-06-05 15:08:30 +08:00
Lunny Xiao 942887dea0 fix time issues and add some tests for time (#604)
* fix time issues and add some tests for time

* fix tests bug

* fix tests

* some fixes with tests and added mssql support

* fix tests
2017-06-02 16:12:50 +08:00
Lunny Xiao 9c179e47a1 fix insert single pk column table failed (#603) 2017-06-01 09:57:33 +08:00
Lunny Xiao 36a9cdaa23 add more tests (#602) 2017-05-31 17:19:41 +08:00
Lunny Xiao 244841c035 more tests (#601) 2017-05-31 16:45:15 +08:00
Lunny Xiao 0cc29f16ae add more tests (#600)
* add more tests

* fix tests
2017-05-31 16:11:43 +08:00
Lunny Xiao 9033c97e4d add update test for #555 (#598)
* add update test for #555

* fix tests
2017-05-31 11:13:06 +08:00
Lunny Xiao 240b4d97ef add more tests (#597) 2017-05-31 11:04:09 +08:00
Lunny Xiao 8729bffe74 fix distinct & top conflict on mssql (#596) 2017-05-31 09:01:50 +08:00
Lunny Xiao 7154d2c42d add more tests (#595)
* add more tests

* fix tests
2017-05-30 20:33:30 +08:00
Lunny Xiao e266fb7af1
add cache get test 2017-05-27 22:28:28 +08:00
Lunny Xiao e561396c0b
add more tests for schema 2017-05-27 22:14:13 +08:00
Lunny Xiao 643f1b2efd
add some tests for schema operations 2017-05-27 21:47:35 +08:00
Lunny Xiao 5b110f7278
add more tests 2017-05-27 20:34:57 +08:00
Lunny Xiao 7b26afd65c
fix tests 2017-05-27 19:19:47 +08:00
Lunny Xiao 01c460927d
multiple databases testes on 1 TestMain 2017-05-27 19:14:47 +08:00
Lunny Xiao 0437b98eca
fix bug on tests 2017-05-27 18:18:48 +08:00
Lunny Xiao 5d752706f0
more tests 2017-05-27 17:31:39 +08:00
Lunny Xiao 45f23ffc9d
fix tests 2017-05-27 14:03:05 +08:00
Lunny Xiao 5b65f21ae4
add some tests for tag and cache related with #330 2017-05-27 13:50:57 +08:00