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
6777c67a
Commit
6777c67a
authored
Sep 05, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support {:L} with a ',' thousand separator
parent
519bb2e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/main/func_sformat.result
mysql-test/main/func_sformat.result
+1
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+3
-1
No files found.
mysql-test/main/func_sformat.result
View file @
6777c67a
...
...
@@ -212,7 +212,7 @@ set names latin1;
#
select sformat('Num {:L}', 13800000000);
sformat('Num {:L}', 13800000000)
Num 13
800000
000
Num 13
,800,000,
000
select sformat('Num [{:20}]', 42);
sformat('Num [{:20}]', 42)
Num [ 42]
...
...
sql/item_strfunc.cc
View file @
6777c67a
...
...
@@ -56,7 +56,9 @@ C_MODE_END
#include "sql_statistics.h"
/* fmtlib include (https://fmt.dev/). */
#include "fmt/format.h"
#define FMT_STATIC_THOUSANDS_SEPARATOR ','
#define FMT_HEADER_ONLY 1
#include "fmt/format-inl.h"
size_t
username_char_length
=
USERNAME_CHAR_LENGTH
;
...
...
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