Last active
May 3, 2021 22:03
-
-
Save garethflowers/5396878 to your computer and use it in GitHub Desktop.
Polyfill. Returns the length of the requested array dimension.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE OR REPLACE FUNCTION array_length( | |
| ANYARRAY, | |
| INT | |
| ) | |
| RETURNS SETOF INT | |
| LANGUAGE sql | |
| IMMUTABLE | |
| STRICT | |
| AS $$ | |
| SELECT ARRAY_UPPER( $1, $2 ); | |
| $$; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment