mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
array_offset() and array_offsets()
These functions return the offset position or positions of a value in an array. Author: Pavel Stěhule Reviewed by: Jim Nasby
This commit is contained in:
@@ -2315,7 +2315,7 @@ exec_stmt_foreach_a(PLpgSQL_execstate *estate, PLpgSQL_stmt_foreach_a *stmt)
|
||||
errmsg("FOREACH loop variable must not be of an array type")));
|
||||
|
||||
/* Create an iterator to step through the array */
|
||||
array_iterator = array_create_iterator(arr, stmt->slice);
|
||||
array_iterator = array_create_iterator(arr, stmt->slice, NULL);
|
||||
|
||||
/* Identify iterator result type */
|
||||
if (stmt->slice > 0)
|
||||
|
Reference in New Issue
Block a user