From 4b280943dceb3ad41c16bf4fde9b58ec9c378e1c Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 16 Nov 2017 15:28:15 +0000 Subject: [PATCH] Fix SQL --- .../dendrite/clientapi/auth/storage/devices/devices_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/auth/storage/devices/devices_table.go b/src/github.com/matrix-org/dendrite/clientapi/auth/storage/devices/devices_table.go index 903471af..c8ece6b9 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/auth/storage/devices/devices_table.go +++ b/src/github.com/matrix-org/dendrite/clientapi/auth/storage/devices/devices_table.go @@ -54,7 +54,7 @@ const insertDeviceSQL = "" + "INSERT INTO device_devices(device_id, localpart, access_token, created_ts, display_name) VALUES ($1, $2, $3, $4, $5)" const selectDeviceByTokenSQL = "" + - "SELECT device_id, localpart, display_name FROM device_devices WHERE access_token = $1" + "SELECT device_id, localpart FROM device_devices WHERE access_token = $1" const selectDeviceByIDSQL = "" + "SELECT display_name FROM device_devices WHERE localpart = $1 and device_id = $2"