boluor opened a new pull request, #3807:
URL: https://github.com/apache/doris-website/pull/3807

   ## Summary
   
   Doc page (4.x): \`scalar-functions/date-time-functions/monthname.md\` (EN).
   
   The 4th example began with the single line:
   
   \`\`\`
   ---Control the output language by setting \`lc_time_names\`SET 
lc_time_names='zh_CN';
   \`\`\`
   
   The opening \`---\` is a SQL line comment, so the *entire* line — including 
the SET — was being commented out. The next SELECT then ran without 
\`lc_time_names\` actually being changed and returned \`July\` instead of the 
documented \`七月\`.
   
   Break the SET onto its own line so it executes. ZH already does this.
   
   ## Verification
   
   Confirmed on a single-node Apache Doris 4.1.1 cluster:
   
   \`\`\`
   mysql> SET lc_time_names='zh_CN';
   mysql> SELECT MONTHNAME('2023-07-13 22:28:18') AS result;
   +--------+
   | result |
   +--------+
   | 七月   |
   +--------+
   \`\`\`
   
   ## Test plan
   
   - [x] Apply the fix; \`SET lc_time_names='zh_CN'; SELECT MONTHNAME(...)\` 
executed on 4.1.1 cluster returns \`七月\` as the doc states.
   - [x] No other change.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to