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
bf5cc31d
Commit
bf5cc31d
authored
Jun 29, 2023
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: cosmetic changes
parent
65405308
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
94 deletions
+58
-94
sql/item.cc
sql/item.cc
+3
-3
sql/sql_table.cc
sql/sql_table.cc
+55
-91
No files found.
sql/item.cc
View file @
bf5cc31d
...
@@ -1504,7 +1504,7 @@ int Item::save_in_field_no_warnings(Field *field, bool no_conversions)
...
@@ -1504,7 +1504,7 @@ int Item::save_in_field_no_warnings(Field *field, bool no_conversions)
#ifndef DBUG_OFF
#ifndef DBUG_OFF
static
inline
static
inline
void
mark_unsupported_func
(
const
char
*
where
,
const
char
*
processor_name
)
void
dbug_
mark_unsupported_func
(
const
char
*
where
,
const
char
*
processor_name
)
{
{
char
buff
[
64
];
char
buff
[
64
];
my_snprintf
(
buff
,
sizeof
(
buff
),
"%s::%s"
,
where
?
where
:
""
,
processor_name
);
my_snprintf
(
buff
,
sizeof
(
buff
),
"%s::%s"
,
where
?
where
:
""
,
processor_name
);
...
@@ -1514,7 +1514,7 @@ void mark_unsupported_func(const char *where, const char *processor_name)
...
@@ -1514,7 +1514,7 @@ void mark_unsupported_func(const char *where, const char *processor_name)
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
#else
#else
#define mark_unsupported_func(X,Y) {}
#define
dbug_
mark_unsupported_func(X,Y) {}
#endif
#endif
bool
mark_unsupported_function
(
const
char
*
where
,
void
*
store
,
uint
result
)
bool
mark_unsupported_function
(
const
char
*
where
,
void
*
store
,
uint
result
)
...
@@ -1522,7 +1522,7 @@ bool mark_unsupported_function(const char *where, void *store, uint result)
...
@@ -1522,7 +1522,7 @@ bool mark_unsupported_function(const char *where, void *store, uint result)
Item
::
vcol_func_processor_result
*
res
=
Item
::
vcol_func_processor_result
*
res
=
(
Item
::
vcol_func_processor_result
*
)
store
;
(
Item
::
vcol_func_processor_result
*
)
store
;
uint
old_errors
=
res
->
errors
;
uint
old_errors
=
res
->
errors
;
mark_unsupported_func
(
where
,
"check_vcol_func_processor"
);
dbug_
mark_unsupported_func
(
where
,
"check_vcol_func_processor"
);
res
->
errors
|=
result
;
/* Store type of expression */
res
->
errors
|=
result
;
/* Store type of expression */
/* Store the name to the highest violation (normally VCOL_IMPOSSIBLE) */
/* Store the name to the highest violation (normally VCOL_IMPOSSIBLE) */
if
(
result
>
old_errors
)
if
(
result
>
old_errors
)
...
...
sql/sql_table.cc
View file @
bf5cc31d
This diff is collapsed.
Click to expand it.
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