Repository navigation
docs: Explain CLIENT_IGNORE_SPACE for function names followed by a space - #649
Conversation
Closes #408. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
Question: Reply to the reporter on #408#408's reporter is waiting for an answer (last asked on 2026-06-25). The cause is the server's parser, not RMariaDB: for some built-in functions, such as
If nobody decides, the PR closes #408 on merge without a reply.
Generated by Claude Code |
|
Confirmed on main 06992e5 (RMariaDB 1.3.5.9007) against MariaDB 10.11.14, on a default connection without Generated by Claude Code |
SELECT EXTRACT (YEAR FROM date_col), with a space before the parenthesis, fails with syntax error 1064.This comes from the server's parser, not from RMariaDB: the
mariadbcommand-line client fails the same way, and the query works once theIGNORE_SPACESQL mode is set.RMariaDB already exports
CLIENT_IGNORE_SPACE, but nothing pointed users to it.This PR adds a paragraph and an example to the
Client-flagshelp page.It explains that some built-in functions, such as
EXTRACTandCOUNT, fail with a space before the parenthesis and then needCLIENT_IGNORE_SPACEor theIGNORE_SPACESQL mode, and notes that with this mode built-in function names become reserved words, so tables or columns with such names need backtick quoting.Verified against a local MariaDB 10.11 server with the query
SELECT EXTRACT (YEAR FROM DATE '2024-01-15') AS y.The Rd file was regenerated with roxygen2 8.1.1 and the diff contains only the new text.
No NEWS entry, because NEWS.md is generated from commits.
Closes #408.
https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89
Generated by Claude Code