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
d99994a4
Commit
d99994a4
authored
Jun 08, 2016
by
Monty
Committed by
Sergei Golubchik
Jun 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure we print the most importaint violating function
parent
2fe8dd0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
sql/item.cc
sql/item.cc
+4
-1
sql/item.h
sql/item.h
+4
-4
No files found.
sql/item.cc
View file @
d99994a4
...
@@ -1413,9 +1413,12 @@ bool mark_unsupported_function(const char *where, uchar *store, uint result)
...
@@ -1413,9 +1413,12 @@ bool mark_unsupported_function(const char *where, uchar *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
;
mark_unsupported_func
(
where
,
"check_vcol_func_processor"
);
mark_unsupported_func
(
where
,
"check_vcol_func_processor"
);
res
->
errors
|=
result
;
/* Store type of expression */
res
->
errors
|=
result
;
/* Store type of expression */
res
->
name
=
where
?
where
:
""
;
/* Store the name to the highest violation (normally VCOL_IMPOSSIBLE) */
if
(
res
->
errors
>
old_errors
)
res
->
name
=
where
?
where
:
""
;
return
false
;
return
false
;
}
}
...
...
sql/item.h
View file @
d99994a4
...
@@ -34,10 +34,10 @@ C_MODE_END
...
@@ -34,10 +34,10 @@ C_MODE_END
/* Bits for type of vcol expression */
/* Bits for type of vcol expression */
#define VCOL_DETERMINISTIC 0
/* Normal (no bit set) */
#define VCOL_DETERMINISTIC 0
/* Normal (no bit set) */
#define VCOL_
NON_DETERMINISTIC 1
#define VCOL_
UNKNOWN 1
/* UDF used; Need fix_fields() to know */
#define VCOL_
TIME_FUNC
2
#define VCOL_
NON_DETERMINISTIC
2
#define VCOL_
IMPOSSIBLE
4
#define VCOL_
TIME_FUNC
4
#define VCOL_
UNKNOWN 8
/* UDF used; Need fix_fields() to know */
#define VCOL_
IMPOSSIBLE 8
class
Protocol
;
class
Protocol
;
struct
TABLE_LIST
;
struct
TABLE_LIST
;
...
...
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