Support non-numeric placeholders.

Created on 30 March 2022, almost 3 years ago
Updated 14 September 2023, over 1 year 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.71.5 2024