{"action":"opened","issue":{"url":"https://api.github.com/repos/sunkaixuan/SqlSugar/issues/129","repository_url":"https://api.github.com/repos/sunkaixuan/SqlSugar","labels_url":"https://api.github.com/repos/sunkaixuan/SqlSugar/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/sunkaixuan/SqlSugar/issues/129/comments","events_url":"https://api.github.com/repos/sunkaixuan/SqlSugar/issues/129/events","html_url":"https://github.com/sunkaixuan/SqlSugar/issues/129","id":378171664,"node_id":"MDU6SXNzdWUzNzgxNzE2NjQ=","number":129,"title":"SqlFunc.HasValue 以及 SqlFunc.IsEmptyOrNull函数生成了Oracle无效语句","user":{"login":"xman086","id":7123260,"node_id":"MDQ6VXNlcjcxMjMyNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/7123260?v=4","gravatar_id":"","url":"https://api.github.com/users/xman086","html_url":"https://github.com/xman086","followers_url":"https://api.github.com/users/xman086/followers","following_url":"https://api.github.com/users/xman086/following{/other_user}","gists_url":"https://api.github.com/users/xman086/gists{/gist_id}","starred_url":"https://api.github.com/users/xman086/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xman086/subscriptions","organizations_url":"https://api.github.com/users/xman086/orgs","repos_url":"https://api.github.com/users/xman086/repos","events_url":"https://api.github.com/users/xman086/events{/privacy}","received_events_url":"https://api.github.com/users/xman086/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T07:31:46Z","updated_at":"2018-11-07T07:31:46Z","closed_at":null,"author_association":"NONE","body":"SqlFunc.HasValue(item.Id)==>WHERE ( \"ID\"<>'' AND \"ID\" IS NOT NULL )\r\nSqlFunc.IsEmptyOrNull(item.Id)==>WHERE NOT( \"ID\"='' OR \"ID\" IS NULL )\r\n\r\n如果Oracle中ID字符串为空串（Oracle默认会将空串转为NULL存储) 以上语句将会把所有不为空的记录全部过滤掉，即与希望的结果恰好相反。正确生效的语句为WHERE \"ID\" IS NOT NULL。\r\n注：以上SQL语句在mysql以及sqlserver中返回正确结果。"}}
{"actor":{"display_login":"xman086"}}