Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3387620
D4530.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
675 B
Referenced Files
None
Subscribers
None
D4530.id.diff
View Options
diff --git a/keyserver/src/fetchers/user-fetchers.js b/keyserver/src/fetchers/user-fetchers.js
--- a/keyserver/src/fetchers/user-fetchers.js
+++ b/keyserver/src/fetchers/user-fetchers.js
@@ -85,9 +85,10 @@
`);
}
query.append(SQL`
- UNION SELECT id AS user1, NULL AS user2, NULL AS undirected_status,
- NULL AS user1_directed_status, NULL AS user2_directed_status,
- username
+ UNION SELECT id AS user1, NULL AS user2, username,
+ CAST(NULL AS UNSIGNED) AS undirected_status,
+ CAST(NULL AS UNSIGNED) AS user1_directed_status,
+ CAST(NULL AS UNSIGNED) AS user2_directed_status
FROM users
WHERE id = ${viewer.userID}
`);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 10:25 AM (15 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600568
Default Alt Text
D4530.id.diff (675 B)
Attached To
Mode
D4530: [keyserver] Cast NULLs in UNION SELECT
Attached
Detach File
Event Timeline
Log In to Comment