Difference between revisions of "Issue:Incorrect categorymatch"

From FollowTheScore
Jump to: navigation, search
(New page: {{Issue |Type = Bug |Extension = DPL |Version = ? |Description = categorymatch=Test_1 finds also Category:Test-1 |Status = open }} == Problem == categorymatch seems...)
 
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
categorymatch=Test_1 finds pages in [[:Category:Test-1]] AND  [[:Category:Test 1]].
 
categorymatch=Test_1 finds pages in [[:Category:Test-1]] AND  [[:Category:Test 1]].
  
{{#dpl:
+
<pre>{{#dpl:
 
|debug=3
 
|debug=3
 
|namespace=
 
|namespace=
 
|categorymatch=Test_1
 
|categorymatch=Test_1
}}
+
}}</pre>
  
<pre>{{#dpl:
+
{{#dpl:
 
|debug=3
 
|debug=3
 
|namespace=
 
|namespace=
 
|categorymatch=Test_1
 
|categorymatch=Test_1
}}</pre>
+
}}
  
 
== Reply ==
 
== Reply ==
 +
As far as I remember underscores have a special meaning within SQL LIKE (standing für any single char).
 +
You may need to escape them. [[User:Gero|Gero]] 00:02, 1 March 2010 (UTC)

Latest revision as of 01:02, 1 March 2010

Description: categorymatch=Test_1 finds also Category:Test-1
Extension / Version: DPL   /   ?
Type / Status: Bug   /   open

Problem

categorymatch seems to work incorrectly. At least I woudn't expect it to behave like that.

categorymatch=Test_1 finds pages in Category:Test-1 AND Category:Test 1.

{{#dpl:
|debug=3
|namespace=
|categorymatch=Test_1
}}

Reply

As far as I remember underscores have a special meaning within SQL LIKE (standing für any single char). You may need to escape them. Gero 00:02, 1 March 2010 (UTC)