Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3046

NOT LIKE with wildcard unexpectedly returns results

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The following returns all rows in the table when it should return no rows:

      select * from emp where first_name not like '%'

      The following returns no rows as expected:

      select * from emp where first_name not like '%%'

      first_name is a VARCHAR column

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kliew Kevin Liew
            kliew Kevin Liew
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment