code: private String patternCond(String columnName, String tableName) {
      if (tableName == null) {
        return "(1 = 1)";
      }
      String predicate =
          (tableName.indexOf('%') == -1 && tableName.indexOf('_') == -1) ? "=" : "LIKE";
      return "(" + columnName + " " + predicate + " '" + Utils.escapeString(tableName, true) + "')";
    }
docs: Helper to generate  information schema queries with "like" or "equals" condition (typically  on table name)