Support non-numeric placeholders.

Created on 30 March 2022, over 2 years ago
Updated 14 September 2023, 10 months ago

Problem/Motivation

Placeholders currently only support numeric values.

Proposed resolution

Do not use ->replacePlaceholders() to generate SQL queries but rather keep placeholders as they are and add their values to each Connection->query() call.

Remaining tasks

Update ->loadMultiple(), ->query(), ->countQuery() and ->runQueries() methods.

API changes

replacePlaceholders() should be documented to not be used for queries but rather just "previews".

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France guignonv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024