Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102398
D416.id1066.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, Aug 18, 11:04 PM
Size
479 B
Mime Type
text/x-diff
Expires
Tue, Aug 19, 11:04 PM (8 h, 37 m)
Engine
blob
Format
Raw Data
Handle
714154
Attached To
D416: INP-1812 - Change "LeftJoinOptimizer" to find table aliases usage only at word boundaries
D416.id1066.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