Lunny Xiao
a3412d6ba6
add oracle tests
2020-04-09 15:20:25 +08:00
limo.creed
34dc7f8791
Add Hook ( #1644 )
...
move hook to standalone package
add hook for engine
Co-authored-by: yuxiao.lu <yuxiao.lu@liulishuo.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1644
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-09 06:03:39 +00:00
limo.creed
cfa88b908c
fix context not deliver in QueryStructContext ( #1645 )
...
fix context not deliver in QueryStructContext
Co-authored-by: yuxiao.lu <yuxiao.lu@liulishuo.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1645
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-08 02:20:36 +00:00
rosbit
7e981f5f5e
fix bug for mis-converting uint64 to int64 ( #1647 )
...
fix bug for mis-converting uint64 to int64
Co-authored-by: rosbit <me@rosbit.cn>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1647
2020-04-05 04:49:44 +00:00
limo.creed
410c2de923
fix misspelled words ( #1642 )
...
fix misspelled words
Co-authored-by: yuxiao.lu <yuxiao.lu@liulishuo.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1642
2020-04-01 12:37:03 +00:00
Lunny Xiao
5d90695511
update discuss forum new address ( #1638 )
...
update discuss forum new address
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1638
2020-03-28 02:24:39 +00:00
Lunny Xiao
0a06dc204a
Move processor function into one file ( #1637 )
...
Move processor function into one file
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1637
2020-03-28 02:23:37 +00:00
Lunny Xiao
79bdda3cf1
Move all integrations tests to a standalone sub package ( #1635 )
...
Fix vet
Remove unused files
Move all integrations tests to a standalone sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1635
2020-03-27 07:13:04 +00:00
Lunny Xiao
2ac051f075
Improve insert map generating SQL ( #1634 )
...
Fix writeArg
Improve insert map generating SQL
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1634
2020-03-27 03:13:25 +00:00
Lunny Xiao
78bb4c711d
Improve codes ( #1630 )
...
Improve codes
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1630
2020-03-26 13:24:11 +00:00
Lunny Xiao
b78418daa5
Support session id ( #1632 )
...
small nit
Support session id
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1632
2020-03-26 12:31:08 +00:00
Lunny Xiao
6254e7899f
Move column string to standalone method ( #1633 )
...
Move column string to standalone method
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1633
2020-03-26 12:01:28 +00:00
Lunny Xiao
fb8eb29d1e
Fix lint errors ( #1631 )
...
Fix lint errors
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1631
2020-03-26 04:41:02 +00:00
Lunny Xiao
3e4dc66c58
Add changelog for v1.0.1 ( #1629 )
...
Add changelog for v1.0.1
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1629
2020-03-25 13:13:09 +00:00
Lunny Xiao
34f5bc3465
Fix quote with blank ( #1626 )
...
Fix quote with blank
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1626
2020-03-25 12:28:11 +00:00
Lunny Xiao
0a3685be83
Fix postgres schema problem ( #1624 )
...
Fix postgres
Add DefaultPostgresSchema back
force push
Fix postgres schema problem
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1624
2020-03-25 09:36:45 +00:00
Lunny Xiao
6132eea08c
Fix dump test ( #1625 )
...
Fix dump test
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1625
2020-03-24 02:51:37 +00:00
Lunny Xiao
9dca7f0703
Add more tests for FindAndCount ( #1621 )
...
Add more tests for FindAndCount
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1621
2020-03-24 02:19:56 +00:00
Lunny Xiao
5053c35701
Don't keep db on dialects ( #1623 )
...
don't keep db on dialects
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1623
2020-03-24 02:19:24 +00:00
Lunny Xiao
79cdec7d88
Fix duplicated deleted condition on FindAndCount ( #1619 )
...
Fix duplicated deleted condition on FindAndCount
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1619
2020-03-24 00:48:54 +00:00
Lunny Xiao
656cf6e5d6
Fix find and count bug ( #1622 )
...
Fix find and count bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1622
2020-03-23 14:39:52 +00:00
Lunny Xiao
3bddd228e7
Fix find and count bug ( #1618 )
...
Fix find and count bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1618
2020-03-23 14:38:01 +00:00
tomoyamachi
2ece3bacbb
Oracle : Local Naming Method ( #1515 )
...
go mod tidy
stop using xorm.io/core
Merge branch 'master' into fix-oracle-db
revert a goracle parser function
add TestParseOracleConnStr
Oracle : Local Naming Method
Co-authored-by: Tomoya AMACHI <tomoya.amachi@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1515
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-03-23 02:03:04 +00:00
Lunny Xiao
5575e839df
Add changelog for v1.0.0 ( #1614 )
...
Add changelog for v1.0.0
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1614
2020-03-22 06:28:25 +00:00
Lunny Xiao
af30c17b0d
Fix dump bug ( #1613 )
...
Fix dump
Fix dump bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1613
2020-03-21 16:05:12 +00:00
Lunny Xiao
a7a1dc5c42
Fix setschema ( #1606 )
...
Fix schema
Fix setschema
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1606
2020-03-17 06:50:06 +00:00
Lunny Xiao
b7b2b21a40
Fix dump/import bug ( #1603 )
...
Fix bug
Fix mssql
Fix postgres
Fix import test
Fix dump/import bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1603
2020-03-15 02:02:37 +00:00
Lunny Xiao
9500b23395
Fix pk bug ( #1602 )
...
Fix pk bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1602
2020-03-13 08:57:34 +00:00
Lunny Xiao
c56c8e122a
Fix master/slave bug ( #1601 )
...
fix test
Fix master/slave bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1601
2020-03-13 00:42:01 +00:00
joelBai
c2bf301bdb
fix batch insert interface slice be panic ( #1598 )
...
fix batch insert []interface{*struct, ...} be panic;add TestInsertMulti2Interface testcase
Co-authored-by: baijinping <baikkp@126.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1598
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-03-12 12:05:26 +00:00
Lunny Xiao
367b15879e
Fix bug when dump ( #1597 )
...
Fix bug when dump
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1597
2020-03-11 23:30:35 +00:00
Lunny Xiao
94fd254638
Support count with cols ( #1595 )
...
Support count with cols
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1595
2020-03-11 03:29:43 +00:00
Lunny Xiao
537d82a6f7
Ignore schema when dbtype is not postgres ( #1593 )
...
Ignore schema when dbtype is not postgres
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1593
2020-03-10 13:15:18 +00:00
Lunny Xiao
6485adb722
Fix table name ( #1590 )
...
add test
Fix table name
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1590
2020-03-10 08:15:13 +00:00
Jerry
2f95c750c3
jerry:add postgre data_type array ( #1589 )
...
fix err,add postgres column ARRAY
fix err,add postgres column ARRAY
Co-authored-by: Jerry <85411418@qq.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1589
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-03-10 06:11:42 +00:00
Lunny Xiao
9d4594632f
Fix mssql issue with duplicate columns. ( #1225 )
...
fix test
fix test
Fix mssql issue with duplicate columns.
The `GetColumns()` method for the mssql dialect can return the same
column multiple times if the column is in multiple indexes.
Co-authored-by: Robert G. Jakabosky <bobby@sharedrealm.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1225
2020-03-10 04:46:46 +00:00
Lunny Xiao
36e26e35ed
解决Conversion接口ToDB() ([]byte, error)方法返回*Type值为nil时,数据类型为[]byte(nil)的… ( #1296 )
...
add test
解决Conversion接口ToDB() ([]byte, error)方法返回*Type值为nil时,数据类型为[]byte(nil)的bug,解决*Type值为nil时插入数据变为""的bug
Co-authored-by: peihexian <peihexian@qq.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1296
2020-03-10 03:02:31 +00:00
Lunny Xiao
f13883a725
check driver.Valuer response, and skip the column if nil ( #1167 )
...
update tests
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1167
2020-03-10 03:01:32 +00:00
Lunny Xiao
67cf42799c
Remove duplicated code ( #1588 )
...
Remove duplicated code
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1588
2020-03-10 01:03:33 +00:00
Lunny Xiao
188da20272
Move value2interface from session to statement package ( #1587 )
...
Fix zero
Fix tests
Move value2interface from session to statement package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1587
2020-03-09 08:03:59 +00:00
Lunny Xiao
4ef030c9cc
mysql8.0 中同步数据前,获取数据库结构,因tableRaw为空导致同步失败 ( #808 )
...
mysql8.0 中同步数据前,获取数据库结构,因tableRaw为空导致同步失败
Co-authored-by: 崔彦鹏 <mohong122@qq.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/808
2020-03-09 06:37:03 +00:00
Lunny Xiao
3617ee736f
Only replace quotes when necessary ( #1584 )
...
fix test
improve code
improve code
improve code
improve code
Fix replace quote
fix test
Only replace quotes when necessary
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1584
2020-03-09 02:17:37 +00:00
Lunny Xiao
00b65c6d99
Update README ( #1582 )
...
Remove version
Update README
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1582
2020-03-08 06:10:05 +00:00
Lunny Xiao
f238bb9d07
Improve insert ( #1583 )
...
Improve insert
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1583
2020-03-08 05:14:28 +00:00
Lunny Xiao
8b100bb7d4
Fix find alias bug ( #1581 )
...
Code improvement
Fix find alias bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1581
2020-03-08 02:29:25 +00:00
Lunny Xiao
257653726e
return sqls for create table ( #1580 )
...
return sqls for create table
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1580
2020-03-07 12:06:28 +00:00
Lunny Xiao
ccf65397e8
Improve dialect interface ( #1579 )
...
Fix bug
Improve dialect interface
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1579
2020-03-07 10:00:05 +00:00
Lunny Xiao
7f22948be9
Improve dialect interface ( #1578 )
...
Improve dialect interface
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1578
2020-03-07 08:51:30 +00:00
Lunny Xiao
0f166d82da
Fix rows bug ( #1576 )
...
Fix rows bug
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1576
2020-03-06 12:08:32 +00:00
Lunny Xiao
fa219bb836
Fix map with cols ( #1575 )
...
Fix cache bug
Fix map with cols
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1575
2020-03-06 08:55:12 +00:00