Commit Graph

255 Commits

Author SHA1 Message Date
Lunny Xiao 5789833408
first part to resolve #504 2017-03-27 15:45:15 +08:00
Lunny Xiao 91ea7427fe
add cond test and fix missing quote on sum 2017-03-26 20:37:04 +08:00
ZACH 24fae7b3b1 auto judge exist or not quote,then add or ignore (#548)
* fix IN and NotIN SQL not add quote

* auto judge exist or not quote,then add or ignore

* auto judge exist or not quote,then add or ignore
2017-03-23 15:22:06 +08:00
ZACH 70bc6741cf fix IN and NotIN SQL not add quote (#547) 2017-03-23 14:23:52 +08:00
Lunny Xiao 0d9762712b
fix distinct & count bug 2017-03-11 21:24:37 +08:00
Lunny Xiao e0276e0f48
remove unused method 2017-03-01 16:55:53 +08:00
Lunny Xiao 382b85d765
fix #516, #536 2017-02-24 12:45:33 +08:00
Lunny Xiao 664a52a6d7
some gofmt & golint fixed 2017-01-09 09:52:23 +08:00
Lunny Xiao 44b70cccf4
add Find ints support & split session into multiple files 2017-01-03 13:31:47 +08:00
Lunny Xiao c60f2467a9
some golints fixed 2016-12-11 12:45:37 +08:00
Lunny Xiao dc3618b2f7
resolved #481 2016-12-10 10:04:48 +08:00
Lunny Xiao 7222d6d7b3 some fixed for mssql support 2016-12-01 14:48:40 +08:00
Lunny Xiao 311abf25ab resolved #498 2016-11-23 21:27:15 +08:00
Sergey f31f552026 Getting flag for the column via helper method (#492) 2016-11-12 11:30:16 +08:00
Sergey Kurt eb247210c0 Fix golint ' receiver name ... should be ...' warnings 2016-11-09 17:43:27 +03:00
Sergey Kurt 9a143fe45f Fix golint 'comment on exported (method|type) ...' warnings 2016-11-08 18:31:41 +03:00
Sergey Kurt 326f075fd7 Fixed generation in case of skipping last column 2016-11-08 12:32:08 +03:00
Sergey Kurt a618e46460 Columns string generation via bytes.Buffer 2016-11-07 14:47:42 +03:00
gotokatsuya c17ed51823 Fix typo at NotIn comment 2016-10-17 17:23:28 +09:00
Lunny Xiao 291b8fedc3 bug fixed for mssql 2016-10-10 15:07:12 +08:00
Lunny Xiao 26f36a2c8e distinc count 2016-09-29 14:13:15 +08:00
Lunny Xiao 1f455336b2 bug fixed for Count 2016-09-29 14:10:03 +08:00
Lunny Xiao 7b5ac89633 add *builder.Builder as pointer to .SQL 2016-09-23 10:08:28 +08:00
Lunny Xiao c9b09da6e1 rename 2016-09-19 11:13:40 +08:00
Lunny Xiao 01c5ff6337 added condition query builder support via github.com/go-xorm/builder 2016-09-17 20:04:52 +08:00
Lunny Xiao 37e2a03a61 resolved #445: sum returned error when no condition matched 2016-09-01 10:15:12 +08:00
Lunny Xiao db48d70fd0 bug fixed for table name detect on insert a slice 2016-08-22 12:56:40 +08:00
Lunny Xiao 01a03a3092 resolved #431 2016-07-28 23:26:14 +08:00
Lunny Xiao 5612916fea bug fixed and performance improved for table name 2016-07-09 08:15:53 +08:00
Lunny Xiao 86701ad07e added Sum, Sums, SumsInt methods 2016-07-07 22:34:43 +08:00
Victor Gaydov a75b13f07d Move statement methods to statement.go 2016-06-30 15:43:47 +08:00
Lunny Xiao 56d649f413 bug fixed for empty struct when update 2016-04-27 11:31:02 +08:00
Lunny Xiao 5c116a34d6 bug fixed #379 2016-04-22 21:43:22 +08:00
Victor Gaydov ce28ee9f19 Accumulate args when using Join() multiple times 2016-04-19 01:21:08 +03:00
Lunny Xiao 0f03658955 some comments, refactors improvements 2016-04-07 08:54:02 +08:00
Lunny Xiao 2b34c682f1 added custom int and string type for primary key support 2016-04-06 22:19:38 +08:00
Lunny Xiao b336fa1880 ILogger interface changed and some golint issues resolved, #367 resolved 2016-03-31 18:19:00 +08:00
Lunny Xiao 7d2967c786 join parameters support & many comments 2016-03-29 09:17:06 +08:00
Lunny Xiao 0d2245dad2 the second Where will be treated as And 2016-03-23 16:22:08 +08:00
Lunny Xiao bfb5784ec5 bug fxied for Sync2 when share the same struct between different tables 2016-03-10 09:39:25 +08:00
Lunny Xiao 5df1bc92df resolved gogits/gogs#2743 2016-03-06 12:05:20 +08:00
Lunny Xiao d92dc9d373 bug resolved for #364 & #365 2016-03-04 17:38:05 +08:00
Lunny Xiao 4fec1167de add schema support for postgres 2016-03-03 11:03:26 +08:00
Lunny Xiao 862d4e0586 bug fixed for soft delete and resolved #359 and disable warning when found non-sync tables 2016-02-28 13:44:18 +08:00
evalphobia 59b780b516 Ignore empty args statement.In() 2016-02-03 20:13:03 +09:00
Lunny Xiao 791d17fed6 some improvments 2016-01-28 16:54:15 +08:00
Lunny Xiao 025e2a20e5 bug fixed for deleted & alias conflict 2016-01-12 17:19:47 +08:00
Lunny Xiao fad61020e8 resolved #250, #317 2016-01-02 23:55:01 +08:00
Lunny Xiao aac04b323f bug fixed for update empty slice, map 2015-12-02 14:54:58 +08:00
Lunny Xiao 8bf440560e bug fixed for update which includes json struct fields 2015-10-29 13:30:22 +08:00
Lunny Xiao a0e63df407 bug fixed 2015-10-27 15:41:13 +08:00
Lunny Xiao 81d7f834b1 small optimizations for statement string generation 2015-10-27 14:45:48 +08:00
Lunny Xiao 1d3b0d699e bug fixed: resolved #301 2015-10-26 16:34:04 +08:00
Lunny Xiao 300379e016 bug fixed #297 2015-10-06 22:56:28 +08:00
evalphobia 65f413ecf3 refactored genSelectSql 2015-08-30 20:23:46 +09:00
evalphobia 693501fd60 Fixed FOR UPDATE for each dialects #290 2015-08-30 20:07:18 +09:00
evalphobia e89f74daa0 Added feature for SELECT ... FOR UPDATE 2015-08-28 16:54:19 +09:00
Lunny Xiao b3ec16b09c bug fixed #280 2015-08-12 22:02:27 +08:00
Lunny Xiao f9e450f348 add AfterSet processor support & resolved #276 2015-08-06 14:24:17 +08:00
haolei 88a0888d6d 修正支持sql.NullString...时AllCols()时没有更新空字段。 2015-07-26 00:01:06 +08:00
haolei 3189b41ec3 修正支持sql.NullString字段时,使用Iterater方法时崩溃 2015-07-20 14:13:13 +08:00
haolei 916367d81e 增加支持sql.NullString...Iterate方法。 2015-07-20 11:23:29 +08:00
evalphobia 1ebd50ead5 Added feature to update with null for non pointer value 2015-06-10 23:04:14 +09:00
Lunny Xiao 8506d65874 bug fixed for custom time 2015-05-26 14:06:54 +08:00
Lunny Xiao ff6f3b7a8d bug fixed for auto condition on join 2015-05-25 17:49:28 +08:00
Lunny Xiao 439cc27466 added Select method for special select column express 2015-05-24 21:32:27 +08:00
Lunny Xiao a7e7288163 bug fixed 2015-05-18 17:04:25 +08:00
Lunny Xiao 1992491553 license 2015-04-28 16:25:04 +08:00
Lunny Xiao ba131dd9a0 resolved #199 2015-03-12 22:26:45 +08:00
Lunny Xiao 53da67f171 Merge branch 'master' into oci8_support 2015-03-12 17:47:11 +08:00
Lunny Xiao 9ae245b54b bug fixed 2015-03-12 17:46:24 +08:00
Lunny Xiao 479deaff02 oci8 support 2015-03-12 17:21:02 +08:00
Zhou d298f91ceb func buildUpdates has same issue, fixed 2015-03-10 09:15:50 +08:00
Apphost 16b813a159 fix non-int pk issues 2015-03-09 22:00:34 +08:00
ilisin 7acdf292bf for oracle support
modify base on lastest version of xorm
2015-03-05 09:56:15 +08:00
Lunny Xiao ede84cde60 bug fixed 2015-03-03 15:14:44 +08:00
Lunny Xiao 4d5681caf8 oracle support, to be continued 2015-03-03 14:58:01 +08:00
Lunny Xiao 26932e9b90 bug fixed #84 2015-02-28 17:31:51 +08:00
Lunny Xiao 5cdb680945 add cascade non-int64 primary key support & bug fixed #178 2015-02-22 23:52:53 +08:00
seago a7766eced1 修复mysql下group by 字段被替换成查询的column的问题 2015-02-13 14:40:08 +08:00
Lunny Xiao a2fe082f1a Revert: remove support for Table(~tablename) 2015-02-12 14:53:59 +08:00
江林锦 5b2b0091de Expr() => SetExpr() 2015-01-28 14:10:45 +08:00
江林锦 5a47ac4347 implement Expr() 2015-01-28 13:23:01 +08:00
Lunny Xiao 72f04dadd8 Merge branch 'master' of github.com:go-xorm/xorm 2015-01-23 17:08:57 +08:00
Lunny Xiao 872633e699 improved & bug fixed 2015-01-23 16:25:28 +08:00
starchou 0b1677ab9d fix missing group by 2015-01-14 15:04:48 +08:00
Lunny Xiao 8402302cc7 bug fixed 2015-01-13 17:31:08 +08:00
Lunny Xiao 66ba6f849e bug fixed #194 2015-01-13 17:17:34 +08:00
TossPig 60d11ae8c1 fmt
多了个空格。。。
2014-11-23 18:04:22 +08:00
TossPig 1f2355b1bf 修改IsDeleted的状态查询
在pqsql下测试通过
2014-11-23 17:58:09 +08:00
Lunny Xiao f898f5d6a4 bug fixed for In method 2014-11-21 23:40:59 +08:00
商讯在线 730ed76c5d Support table alias 2014-11-19 00:41:03 +08:00
oinume f087929082 Move 'unscoped' field from Engine to Statement.
See https://github.com/go-xorm/xorm/pull/175#issuecomment-61599948
2014-11-05 16:04:53 +09:00
oinume 42f0fc27ea Tag name changed: softdelete -> deleted 2014-11-05 15:29:34 +09:00
Kazuhiro Oinuma b510fc584f Add softdelete feature 2014-11-03 22:03:12 +09:00
Lunny Xiao 271b9b3922 bug fixed for mssql 2014-10-09 20:57:57 +08:00
Lunny Xiao e09d89acb3 bug fixed #152 2014-09-07 09:18:54 +08:00
Nash Tsai 0491cec2e6 changed to cache and nocache tag value support
public Engine.TableInfo() API
2014-08-29 00:34:09 +08:00
Alfred Hall 917bd37518 All cols not being reset, causes problems when using the session again after AllCols()
Signed-off-by: Alfred Hall <ahall@ahall.org>
2014-08-18 13:38:24 +00:00
Lunny Xiao c5a437680d bug fixed for Desc & Asc 2014-08-18 21:20:18 +08:00