Skip to content

Fix property access errors on list values - #2632

Open
sanketpatel32 wants to merge 2 commits into
apache:masterfrom
sanketpatel32:devin/1796096325-list-property-access-error
Open

sanketpatel32 wants to merge 2 commits into
apache:masterfrom
sanketpatel32:devin/1796096325-list-property-access-error

Conversation

@sanketpatel32

Copy link
Copy Markdown

Fixes #2623

Summary

  • Report property access with a string key on a list as SQLSTATE 42804, including the property key in the error message.
  • Report non-integer list subscripts with SQLSTATE 22023 and add an explicit internal-error SQLSTATE to the unreachable array-container fallback.
  • Add regression coverage for direct list property access, VLE alias property access, non-integer subscripts, and integer-subscript controls.

Tests

  • make PG_CONFIG=/home/ubuntu/pg18/bin/pg_config COPT=-Werror install -j$(nproc)
  • make PG_CONFIG=/home/ubuntu/pg18/bin/pg_config installcheck EXTRA_TESTS="pgvector fuzzystrmatch pg_trgm" — all 47 tests passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Property access on a list value raises XX000 "array index must resolve to an integer value"

1 participant