You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2026/04/28 07:58:08 UTC
[PR] Port akka-persistence-r2dbc#365: support ?? as escaped ? in SQL interpolation [pekko-persistence-r2dbc]
pjfanning opened a new pull request, #352:
URL: https://github.com/apache/pekko-persistence-r2dbc/pull/352
Ports https://github.com/akka/akka-persistence-r2dbc/pull/365 to this repo.
Part of https://github.com/akka/akka-persistence-r2dbc/releases/tag/v1.1.0 which is now available under Apache License v2.0
## Summary
Adds support for `??` as an escape sequence to produce a literal `?` in SQL strings built with the `sql` interpolator or `Sql.format`. This is useful for PostgreSQL JSON/JSONB operators (e.g. `jsonb ?? 'key'`) which use `?` in their syntax but should not be treated as bind parameter placeholders.
## Changes
- **`Sql.scala`**: In `fillInParameterNumbers`, handle `??` by emitting a single `?` and skipping the second character. Updated Scaladoc for `Interpolation` and `format` to document the new escape.
- **`SqlSpec.scala`**: Updated test case to verify `??` is correctly treated as a literal `?` and does not affect bind parameter numbering.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [PR] Port akka-persistence-r2dbc#365: support ?? as escaped ? in SQL interpolation [pekko-persistence-r2dbc]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning merged PR #352:
URL: https://github.com/apache/pekko-persistence-r2dbc/pull/352
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org