Bug #43996 | subsequent prompt cannot be changed, only first, and should be a comment | ||
---|---|---|---|
Submitted: | 31 Mar 2009 19:01 | Modified: | 1 Apr 2009 6:33 |
Reporter: | Sheeri Cabral (Candidate Quality Contributor) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S4 (Feature request) |
Version: | all | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | comment, prompt, qc |
[31 Mar 2009 19:01]
Sheeri Cabral
[1 Apr 2009 6:33]
Valeriy Kravchuk
Thank you for the feature request.
[26 May 2009 15:55]
Mattias Jonsson
A quick hack to add the feature, tests are left as an exercise to the reader :) (it also handles multi-line comments)
Attachment: b43996_proposal.diff (application/octet-stream, text), 2.73 KiB.
[26 May 2009 16:03]
Mattias Jonsson
The hack works when adding \C as the first characters in the prompt command, like this: mysql> prompt \C commented prompt> PROMPT set to '\C commented prompt> ' /* commented prompt> */ select 5 /* -> */ + /* -> */ 7 /* -> */ ; and multi-line columns: /* commented prompt> */ select now() /* here is a multi- /*> line comment */ , 1;