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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9967da94
Commit
9967da94
authored
Jan 05, 2003
by
hf@deer.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCRUM
additions about DEFAULT in UPDATE and SELECT
parent
2744cc07
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
sql/item.cc
sql/item.cc
+6
-0
sql/item.h
sql/item.h
+6
-0
No files found.
sql/item.cc
View file @
9967da94
...
@@ -1150,6 +1150,12 @@ bool Item_default_value::fix_fields(THD *thd, struct st_table_list *table_list,
...
@@ -1150,6 +1150,12 @@ bool Item_default_value::fix_fields(THD *thd, struct st_table_list *table_list,
return
0
;
return
0
;
}
}
void
Item_default_value
::
print
(
String
*
str
)
{
str
->
append
(
"default("
);
arg
->
print
(
str
);
str
->
append
(
')'
);
}
/*
/*
If item is a const function, calculate it and return a const item
If item is a const function, calculate it and return a const item
...
...
sql/item.h
View file @
9967da94
...
@@ -674,6 +674,12 @@ public:
...
@@ -674,6 +674,12 @@ public:
enum
Type
type
()
const
{
return
DEFAULT_VALUE_ITEM
;
}
enum
Type
type
()
const
{
return
DEFAULT_VALUE_ITEM
;
}
bool
eq
(
const
Item
*
item
,
bool
binary_cmp
)
const
;
bool
eq
(
const
Item
*
item
,
bool
binary_cmp
)
const
;
bool
fix_fields
(
THD
*
,
struct
st_table_list
*
,
Item
**
);
bool
fix_fields
(
THD
*
,
struct
st_table_list
*
,
Item
**
);
bool
check_loop
(
uint
id
)
{
return
Item_field
::
check_loop
(
id
)
||
arg
->
check_loop
(
id
);
}
void
set_outer_resolving
()
{
arg
->
set_outer_resolving
();
}
void
print
(
String
*
str
);
};
};
class
Item_cache
:
public
Item
class
Item_cache
:
public
Item
...
...
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