Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1068754
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
Fri, Jul 18, 11:12 PM
Size
479 B
Mime Type
text/x-diff
Expires
Sat, Jul 19, 11:12 PM (3 h, 29 m)
Engine
blob
Format
Raw Data
Handle
691769
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