1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/src/applications/feed
epriestley 88189f723f Make a Feed query construction less clever/sneaky for new qsprintf() semantics
Summary:
Ref T13216. Ref T13217. Currently, we build this query in a weird way so we end up with `(1, 2, 3)` on both 32-bit and 64-bit systems.

I can't reproduce the string-vs-int MySQL key issue on any system I have access to, so just simplify this and format as `('1', '2', '3')` instead.

The issue this is working around is that MySQL would (I think?) sometimes appear to do something goofy and miss the key if you formatted the query with strings. I never really nailed this down and could have either been mistaken about it or it could be fixed in all modern versions of MySQL. Until we have better evidence to the contrary, assume MySQL is smart enough to handle this sensibly now.

Test Plan: Ran daemons with Feed publish workers, no longer received query warnings.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13217, T13216

Differential Revision: https://secure.phabricator.com/D19837
2018-11-26 10:47:19 -08:00
..
application Make "Core Applications" more reasonable 2016-08-12 07:57:59 -07:00
builder Merge branch 'master' into redesign-2015 2015-07-01 15:07:16 -07:00
conduit Modernize FeedQuery a little bit 2017-05-26 11:53:19 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
controller Update Feed Story page for newPage 2016-04-03 15:34:07 -07:00
management Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
query Make a Feed query construction less clever/sneaky for new qsprintf() semantics 2018-11-26 10:47:19 -08:00
storage Add a rough "bin/repository unpublish" workflow to attempt to cleanup improperly published repositories 2018-03-30 08:46:11 -07:00
story Prevent media from autoplaying when rendered as a feed story 2016-11-22 14:19:56 -08:00
worker Fix a minor/harmless race with feed publishers in certain draft states 2018-01-04 08:14:55 -08:00
PhabricatorFeedStoryPublisher.php Fix an off-by-one error affecting mail rendering of inlines on the final line of a file 2018-11-26 10:12:09 -08:00