Commit Graph

1390 Commits

Author SHA1 Message Date
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
Lunny Xiao 6278427ee6
change ci badage 2017-05-27 10:56:35 +08:00
Lunny Xiao 6992e40a84
update CI config 2017-05-26 15:53:09 +08:00
Lunny Xiao e01b55f035
Merge branch 'master' of github.com:go-xorm/xorm 2017-05-23 12:06:34 +08:00
Lunny Xiao 1743f266cb
add some get tests 2017-05-23 12:06:22 +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 1ff7790a2e
fix bug for int64 id tag 2017-05-17 17:05:36 +08:00
Lunny Xiao 4bd47ece79
add mysql & postgres tests on circle ci 2017-05-17 16:16:39 +08:00
Lunny Xiao 4a2a924369
update circle ci 2017-05-06 13:09:49 +08:00
wangsongyan 65b517242f add comment for mysql dialect (#579) 2017-05-04 21:12:02 +08:00
Lunny Xiao d52a762fba
remove unused code 2017-04-21 00:02:48 +08:00
Lunny Xiao 564b75cdc0
bug fix #572 2017-04-20 23:35:48 +08:00
Lunny Xiao ba71ae6665
remove unused comments 2017-04-17 15:57:19 +08:00
Lunny Xiao 6b6721cccc
fix bug on sum 2017-04-17 15:52:52 +08:00
Lunny Xiao 15f11df2af
fix #570 2017-04-14 13:55:55 +08:00
Lunny Xiao a0b6b62ba0
fix #570 2017-04-14 10:49:02 +08:00
Lunny Xiao a55bded518
refactors 2017-04-12 23:39:33 +08:00