Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726912
D416.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
Mon, Jan 6, 3:14 AM
Size
479 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 3:14 AM (2 d, 19 h ago)
Engine
blob
Format
Raw Data
Handle
536998
Attached To
D416: INP-1812 - Change "LeftJoinOptimizer" to find table aliases usage only at word boundaries
D416.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