Subject: ARRAY_LENGTH() function behavior with empty array
From: otar shavadze <oshavadze@xxxxxxxxx>
Date: Fri, 2 Dec 2016 17:51:06 +0400
SELECT ARRAY_LENGTH('{}'::INT[], 1)
This returns NULL, not so "dangerous" either way, not would be more logically, if array length function will return 0 from empty array, instead of NULL ?