Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F776087
D416.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 6, 6:30 PM
Size
479 B
Mime Type
text/x-diff
Expires
Fri, Feb 7, 6:30 PM (2 h, 14 m)
Engine
blob
Format
Raw Data
Handle
558560
Attached To
D416: INP-1812 - Change "LeftJoinOptimizer" to find table aliases usage only at word boundaries
D416.id.diff
View Options
Index: branches/5.2.x/core/kernel/db/dblist.php
===================================================================
--- branches/5.2.x/core/kernel/db/dblist.php
+++ branches/5.2.x/core/kernel/db/dblist.php
@@ -1765,6 +1765,6 @@
*/
private function matchAlias($escaped_alias, $string)
{
- return preg_match('/(`' . $escaped_alias . '`|' . $escaped_alias . ')\./', $string);
+ return preg_match('/\b(`' . $escaped_alias . '`|' . $escaped_alias . ')\./s', $string);
}
}
Event Timeline
Log In to Comment