Skip to content
Snippets Groups Projects
Commit 92cbc074 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Take out ORDER BY statements.

We don't expect results to be in order, and taking out ORDER BY
statements means we don't need to worry about replacing numbers with
names for better readability.
parent c3749fb4
No related branches found
No related tags found
No related merge requests found
......@@ -256,8 +256,7 @@ CREATE OR REPLACE FUNCTION search_by_address24_date (
|| '''::DATE + 1
AND statusentry.validafter >= exitlistentry.scanned
AND statusentry.validafter - exitlistentry.scanned <=
''1 day''::INTERVAL
ORDER BY 2, 3, 4';
''1 day''::INTERVAL';
END;
$$ LANGUAGE plpgsql;
......@@ -291,8 +290,7 @@ CREATE OR REPLACE FUNCTION search_by_address48_date (
FROM statusentry
WHERE oraddress48 = ''' || select_address48 || '''
AND DATE(validafter) >= ''' || select_date || '''::DATE - 1
AND DATE(validafter) <= ''' || select_date || '''::DATE + 1
ORDER BY 2, 3';
AND DATE(validafter) <= ''' || select_date || '''::DATE + 1';
END;
$$ LANGUAGE plpgsql;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment