{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8353","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8353/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8353/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8353/events","html_url":"https://github.com/orientechnologies/orientdb/issues/8353","id":334537459,"node_id":"MDU6SXNzdWUzMzQ1Mzc0NTk=","number":8353,"title":"toLowercase method compromises indexed searches","user":{"login":"gianluca-valentini","id":3224592,"node_id":"MDQ6VXNlcjMyMjQ1OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3224592?v=4","gravatar_id":"","url":"https://api.github.com/users/gianluca-valentini","html_url":"https://github.com/gianluca-valentini","followers_url":"https://api.github.com/users/gianluca-valentini/followers","following_url":"https://api.github.com/users/gianluca-valentini/following{/other_user}","gists_url":"https://api.github.com/users/gianluca-valentini/gists{/gist_id}","starred_url":"https://api.github.com/users/gianluca-valentini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianluca-valentini/subscriptions","organizations_url":"https://api.github.com/users/gianluca-valentini/orgs","repos_url":"https://api.github.com/users/gianluca-valentini/repos","events_url":"https://api.github.com/users/gianluca-valentini/events{/privacy}","received_events_url":"https://api.github.com/users/gianluca-valentini/received_events","type":"User","site_admin":false},"labels":[{"id":21666882,"node_id":"MDU6TGFiZWwyMTY2Njg4Mg==","url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"luigidellaquila","id":459289,"node_id":"MDQ6VXNlcjQ1OTI4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/459289?v=4","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false},"assignees":[{"login":"luigidellaquila","id":459289,"node_id":"MDQ6VXNlcjQ1OTI4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/459289?v=4","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-21T15:08:08Z","updated_at":"2018-06-22T08:55:39Z","closed_at":null,"author_association":"NONE","body":"### OrientDB Version: 2.2.33\r\n### Java Version: openjdk 1.8  \r\n### OS: alpine 3.4  \r\n\r\n## Expected behavior  \r\nselect * from CarbonUser where name.toLowercase() == 'mary' \r\n![image](https://user-images.githubusercontent.com/3224592/41727706-48737b3a-7575-11e8-86ba-b19b594d7120.png)\r\n\r\n\r\n\r\n## Actual behavior  \r\nselect * from CarbonUser where name.toLowercase() == 'mary' \r\n![image](https://user-images.githubusercontent.com/3224592/41727671-2e07b054-7575-11e8-9033-c43202a37d17.png)\r\n\r\n\r\n## Steps to reproduce  \r\nJust use the toLowercase method on indexed fields in search query\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/399372436","html_url":"https://github.com/orientechnologies/orientdb/issues/8353#issuecomment-399372436","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8353","id":399372436,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTM3MjQzNg==","user":{"login":"gianluca-valentini","id":3224592,"node_id":"MDQ6VXNlcjMyMjQ1OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/3224592?v=4","gravatar_id":"","url":"https://api.github.com/users/gianluca-valentini","html_url":"https://github.com/gianluca-valentini","followers_url":"https://api.github.com/users/gianluca-valentini/followers","following_url":"https://api.github.com/users/gianluca-valentini/following{/other_user}","gists_url":"https://api.github.com/users/gianluca-valentini/gists{/gist_id}","starred_url":"https://api.github.com/users/gianluca-valentini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianluca-valentini/subscriptions","organizations_url":"https://api.github.com/users/gianluca-valentini/orgs","repos_url":"https://api.github.com/users/gianluca-valentini/repos","events_url":"https://api.github.com/users/gianluca-valentini/events{/privacy}","received_events_url":"https://api.github.com/users/gianluca-valentini/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T08:55:39Z","updated_at":"2018-06-22T08:55:39Z","author_association":"NONE","body":"Hi @luigidellaquila \r\nI execute\r\n CREATE INDEX CarbonUser.name ON CarbonUser (name COLLATE ci) NOTUNIQUE\r\n\r\nAnd now it works as expected. \r\n![image](https://user-images.githubusercontent.com/3224592/41767727-b0888158-760a-11e8-91ff-3ba33317c9e6.png)\r\n\r\n\r\nBut there is still one scenario where the behavior is case sensitive.\r\nIf you use the `any()` construct  the database still perform a case-sensitive research, ignoring the ci collate\r\n\r\n`select * from CarbonUser where any() = 'MAry'`\r\n![image](https://user-images.githubusercontent.com/3224592/41767684-9ef1035c-760a-11e8-9000-c815a1638b3c.png)\r\n\r\nHave you any suggestion for this scenario?\r\nGianluca"}}
{"actor":{"display_login":"gianluca-valentini"}}