Skip to content

fix: string_position is zero based, and nil when the substring is absent - #253

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
matt-beanland:fix/string-position-zero-based
Aug 21, 2026
Merged

fix: string_position is zero based, and nil when the substring is absent#253
zachdaniel merged 1 commit into
ash-project:mainfrom
matt-beanland:fix/string-position-zero-based

Conversation

@matt-beanland

Copy link
Copy Markdown
Contributor

Contributor checklist

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

Part of ash-project/ash_postgres#830

Fixes string_position so that SQL returns according to ash contract: match as first position is 0, no match is nil

Tests will follow in an ash_postgres PR

@zachdaniel
zachdaniel merged commit 5857c83 into ash-project:main Aug 21, 2026
26 checks passed
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

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.

2 participants