Commit Graph

200 Commits

Author SHA1 Message Date
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
Lunny Xiao ab8716a447 bug fixed #154 2014-08-08 14:05:51 +08:00
kevinGunn 3c457a8cf0 add mothod Decr 2014-07-15 23:25:24 +08:00
Nicolas Duval c9db8e93f7 Support uint64 with high bit set.
This limitation is due to "database/sql" go package implementation.
2014-07-11 10:40:41 -07:00
Lunny Xiao c039d40ada bug fixed for joinstr when has two Join 2014-06-25 17:09:49 +08:00
Lunny Xiao 6d1a0ac0b0 add Sync2 for a new sync database struct methods 2014-06-11 14:01:14 +08:00
Lunny Xiao 6384ada2bb bug fixed 2014-05-31 12:19:46 +08:00
Lunny Xiao e4f05916cb add support for Join 2014-05-23 14:18:45 +08:00
Lunny Xiao c46403574e buf fixed for conversion update 2014-05-15 22:32:57 +08:00
Nash Tsai 3a6df0e1bd tidy up comments 2014-05-12 11:25:36 +08:00
商讯在线 4f70aace97 fix bug:Iterate func missing "... IN (...)"
Signed-off-by: 商讯在线 <swhbox@foxmail.com>
2014-05-11 18:39:07 +08:00
Lunny Xiao 2ebacae199 add part support for ql 2014-05-07 15:56:33 +08:00
Lunny Xiao f55b4f9c0f In method now can receive slice for first params 2014-05-06 15:16:23 +08:00
Lunny Xiao caffa2447f bug fixed and improved IsTableExist 2014-05-06 14:59:58 +08:00
Lunny Xiao 9347c8ab3e bug fixed for mssql limit 2014-05-06 14:19:37 +08:00
Lunny Xiao 84b89289a3 start & limit implementation for mssql 2014-05-06 11:11:44 +08:00
Lunny Xiao 53dfe7747a bug fixed for Conversion 2014-05-05 14:45:42 +08:00
Lunny Xiao 9e147d2fde add BeforeSet processor and Dump function 2014-05-04 13:53:38 +08:00
Lunny Xiao 685a4a63fd bug fixed and docs improved 2014-05-02 08:48:51 +08:00
Lunny Xiao f3fc0b9976 remove trace string 2014-04-30 10:19:24 +08:00
Lunny Xiao 1a53dc40e1 add support for ql 2014-04-29 14:16:53 +08:00
Lunny Xiao f419c31da1 bug fixs #105 2014-04-23 15:25:27 +08:00
Lunny Xiao 00be2b792a Merge branch 'master' of github.com:go-xorm/xorm
Conflicts:
	engine.go
	session.go
2014-04-21 11:13:53 +08:00
Lunny Xiao 0b7c242ddf bug fixed 2014-04-20 16:01:53 +08:00
Nash Tsai 0a22f9c018 resolved merge 2014-04-19 00:44:14 +08:00
Lunny Xiao 82e73d6002 bug fixed for Incr 2014-04-18 22:14:15 +08:00
Nash Tsai 3ef0b27d4a resolved merge from origin/dev 2014-04-17 23:25:50 +08:00
Nash Tsai 52f7a96bfe resolved merge from origin/dev branch 2014-04-17 21:28:26 +08:00
Lunny Xiao 05e99e39c6 bug fixed 2014-04-17 10:13:16 +08:00
商讯在线 aa9b62f275 update
Signed-off-by: 商讯在线 <swhbox@foxmail.com>
2014-04-15 23:27:08 +08:00
Lunny Xiao 9a7a6cd4d2 move Inc() to Incr() 2014-04-15 12:14:18 +08:00
unphp 64e5181112 Method In provides a update string 2014-04-15 10:55:27 +08:00
unphp 97f4b0e45c Method In provides a update string 2014-04-15 10:55:14 +08:00
商讯在线 ad33a0be49 bug fixed
Signed-off-by: 商讯在线 <swhbox@foxmail.com>
2014-04-13 12:22:32 +08:00
商讯在线 68c59188e9 fix bug #53
Signed-off-by: 商讯在线 <swhbox@foxmail.com>
2014-04-13 10:03:07 +08:00
Lunny Xiao 5080b2b571 Merge branch 'master' into dev
Conflicts:
	dialects/oracle.go
	dialects/postgres.go
	docs/QuickStart.md
	engine.go
	mysql.go
	session.go
	statement.go
	table.go
	tests/base_test.go
	xorm.go
	xorm/go.go
	xorm/reverse.go
2014-04-11 15:37:27 +08:00
Lunny Xiao 9b23e7d6c0 resolved #89: if struct has func, the struct's name is the result 2014-04-08 16:46:23 +08:00
Lunny Xiao 9d5f834eb2 bug fixed & add MustCols function & improved docs 2014-04-06 12:58:16 +08:00
Lunny Xiao 9d64ef5013 bug fixed 2014-04-05 22:14:00 +08:00
Lunny Xiao 3aed2090a0 add AllCols for update all cols 2014-03-24 20:41:07 +08:00
Lunny Xiao 45b3f9775e bug fixed for statement.IdParam 2014-02-25 18:45:24 +08:00
Nash Tsai 4f6106e168 private Engine.LogSQL and create ILogger interface that is compatible with log/syslog package. Also fixed use of LogError instead of LogSQL 2014-02-12 01:35:26 +08:00
Lunny Xiao e77fca31ae move tests to tests subdir & refactoring 2014-01-25 10:07:11 +08:00
Lunny Xiao 004b30f2fb samemapper support 2014-01-09 17:55:33 +08:00
Lunny Xiao 65edc742b4 merge dialect 2014-01-09 14:44:41 +08:00
Lunny Xiao 78fb484ce0 bug fixed 2014-01-08 22:47:30 +08:00
Lunny Xiao 4df43ffa0f new architecture 2014-01-07 17:33:27 +08:00
Lunny Xiao 2c1722ff1d resolved #36 2013-12-31 12:22:36 +08:00
Lunny Xiao 901d7b6670 bug fixed 2013-12-25 17:41:01 +08:00
Lunny Xiao d5a4324585 add support to int32, int, uint, uint32, uint64 for pk 2013-12-24 18:18:48 +08:00
lunny b778bfce82 merge mssql support 2013-12-20 15:11:56 +08:00
lunny 4459c88a28 add mssql support 2013-12-20 14:53:40 +08:00
Nash Tsai 9f3a211ed9 code tidy up 2013-12-18 22:55:39 +08:00
Nash Tsai c2fe9ee0d5 resolved merger from upstream 2013-12-18 15:26:48 +08:00
Nash Tsai a6eb640d81 tidy up comments 2013-12-18 15:24:00 +08:00
Lunny Xiao 59412a951c use tabs 2013-12-18 11:31:32 +08:00