Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12671

Possibility to use NOT LIKE expression

    Details

      Description

      Hi,

      When i look at this:
      https://github.com/phpbb/phpbb/blob/develop-ascraeus/phpBB/phpbb/db/driver/driver.php#L268

      I see it's (currently) not possible to use "NOT LIKE" statement.
      I'm thinking to add a second parameter which allow us to use NOT LIKE instead of LIKE.

      The result should look something like:

      $this->_sql_like_expression(($not_like ? 'NOT LIKE' : 'LIKE' ) . ' \'' . $this->sql_escape($expression) . '\'');

      I'll create a PR asap.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nickvergessen Joas Schilling
                Reporter:
                Geolim4 Geolim4
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: