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
3aff76f3
Commit
3aff76f3
authored
Jul 23, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcol flag rename VCOL_UNKNOWN -> VCOL_FIELD_REF
parent
159dc969
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
sql/field.h
sql/field.h
+1
-1
sql/item.h
sql/item.h
+2
-2
sql/item_func.h
sql/item_func.h
+1
-1
No files found.
sql/field.h
View file @
3aff76f3
...
...
@@ -575,7 +575,7 @@ inline bool is_temporal_type_with_time(enum_field_types type)
}
/* Bits for type of vcol expression */
#define VCOL_
UNKNOWN 1
/* UDF used; Need fix_fields() to know */
#define VCOL_
FIELD_REF 1
#define VCOL_NON_DETERMINISTIC 2
#define VCOL_SESSION_FUNC 4
/* uses session data, e.g. USER or DAYNAME */
#define VCOL_TIME_FUNC 8
...
...
sql/item.h
View file @
3aff76f3
...
...
@@ -2516,8 +2516,8 @@ class Item_field :public Item_ident
bool
update_table_bitmaps_processor
(
void
*
arg
);
bool
switch_to_nullable_fields_processor
(
void
*
arg
);
bool
check_vcol_func_processor
(
void
*
arg
)
{
// may be, a special flag VCOL_FIELD ?
return
mark_unsupported_function
(
field_name
,
arg
,
VCOL_
UNKNOWN
);
{
return
mark_unsupported_function
(
field_name
,
arg
,
VCOL_
FIELD_REF
);
}
void
cleanup
();
Item_equal
*
get_item_equal
()
{
return
item_equal
;
}
...
...
sql/item_func.h
View file @
3aff76f3
...
...
@@ -1470,7 +1470,7 @@ class Item_udf_func :public Item_func
virtual
void
print
(
String
*
str
,
enum_query_type
query_type
);
bool
check_vcol_func_processor
(
void
*
arg
)
{
return
mark_unsupported_function
(
func_name
(),
"()"
,
arg
,
VCOL_
UNKNOWN
);
return
mark_unsupported_function
(
func_name
(),
"()"
,
arg
,
VCOL_
NON_DETERMINISTIC
);
}
};
...
...
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