Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ae18d8d6
Commit
ae18d8d6
authored
Mar 08, 2004
by
paul@ice.snake.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch for #3068: [Prompt without seconds when set from INI file].
(Fix hours/seconds always to display with two digits.)
parent
91370d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
client/mysql.cc
client/mysql.cc
+6
-0
No files found.
client/mysql.cc
View file @
ae18d8d6
...
...
@@ -2676,6 +2676,8 @@ static const char* construct_prompt()
processed_prompt
.
append
(
' '
);
break
;
case
'R'
:
if
(
t
->
tm_hour
<
10
)
processed_prompt
.
append
(
'0'
);
add_int_to_prompt
(
t
->
tm_hour
);
break
;
case
'r'
:
...
...
@@ -2683,6 +2685,8 @@ static const char* construct_prompt()
getHour
=
t
->
tm_hour
%
12
;
if
(
getHour
==
0
)
getHour
=
12
;
if
(
getHour
<
10
)
processed_prompt
.
append
(
'0'
);
add_int_to_prompt
(
getHour
);
break
;
case
'm'
:
...
...
@@ -2708,6 +2712,8 @@ static const char* construct_prompt()
processed_prompt
.
append
(
strtok
(
dateTime
,
"
\n
"
));
break
;
case
's'
:
if
(
t
->
tm_sec
<
10
)
processed_prompt
.
append
(
'0'
);
add_int_to_prompt
(
t
->
tm_sec
);
break
;
case
'w'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment