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
e498d326
Commit
e498d326
authored
Oct 22, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding "const" qualifier to arguments of date2my_decimal()
and ErrConvString::ErrConvString(String *).
parent
bdc03e05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
sql/my_decimal.cc
sql/my_decimal.cc
+1
-1
sql/my_decimal.h
sql/my_decimal.h
+1
-1
sql/sql_error.h
sql/sql_error.h
+1
-1
No files found.
sql/my_decimal.cc
View file @
e498d326
...
...
@@ -320,7 +320,7 @@ my_decimal *seconds2my_decimal(bool sign,
}
my_decimal
*
date2my_decimal
(
MYSQL_TIME
*
ltime
,
my_decimal
*
dec
)
my_decimal
*
date2my_decimal
(
const
MYSQL_TIME
*
ltime
,
my_decimal
*
dec
)
{
longlong
date
=
(
ltime
->
year
*
100L
+
ltime
->
month
)
*
100L
+
ltime
->
day
;
if
(
ltime
->
time_type
>
MYSQL_TIMESTAMP_DATE
)
...
...
sql/my_decimal.h
View file @
e498d326
...
...
@@ -386,7 +386,7 @@ int string2my_decimal(uint mask, const String *str, my_decimal *d)
}
my_decimal
*
date2my_decimal
(
MYSQL_TIME
*
ltime
,
my_decimal
*
dec
);
my_decimal
*
date2my_decimal
(
const
MYSQL_TIME
*
ltime
,
my_decimal
*
dec
);
#endif
/*defined(MYSQL_SERVER) || defined(EMBEDDED_LIBRARY) */
...
...
sql/sql_error.h
View file @
e498d326
...
...
@@ -567,7 +567,7 @@ class ErrConvString : public ErrConv
:
ErrConv
(),
str
(
str_arg
),
len
(
len_arg
),
cs
(
cs_arg
)
{}
ErrConvString
(
const
char
*
str_arg
,
CHARSET_INFO
*
cs_arg
)
:
ErrConv
(),
str
(
str_arg
),
len
(
strlen
(
str_arg
)),
cs
(
cs_arg
)
{}
ErrConvString
(
String
*
s
)
ErrConvString
(
const
String
*
s
)
:
ErrConv
(),
str
(
s
->
ptr
()),
len
(
s
->
length
()),
cs
(
s
->
charset
())
{}
const
char
*
ptr
()
const
{
return
err_conv
(
err_buffer
,
sizeof
(
err_buffer
),
str
,
len
,
cs
);
}
...
...
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