Custom Formatting of Strings in MariaDB Queries (GSoC 2021)
summary
Implements a new sformat function for MariaDB 10.7 that parses format templates, converts arguments and concatenates results, with two new classes create_format and Item and a dedicated test case. Uses the open source fmt library (copied into MariaDB) for parsing and most format behavior. Works for many types in tests and avoids segfaults, but is limited to fmt's spec, has UTF‑8/bracket parsing edge cases, and needs custom formats for decimals and MariaDB datetimes.
AI-written summary · about
