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
129626f1
Commit
129626f1
authored
Jun 26, 2017
by
Varun Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added get_item() to Cached_item_item and get_value to the Cached_item
parent
280945bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
sql/item.h
sql/item.h
+36
-0
No files found.
sql/item.h
View file @
129626f1
...
...
@@ -5303,6 +5303,8 @@ class Cached_item :public Sql_alloc
/* Compare the cached value with the source value, without copying */
virtual
int
cmp_read_only
()
=
0
;
virtual
void
clear
()
=
0
;
virtual
~
Cached_item
();
/*line -e1509 */
};
...
...
@@ -5320,6 +5322,14 @@ class Cached_item_item : public Cached_item
cmp
();
item
=
save
;
}
Item
*
get_item
()
{
return
item
;
}
void
clear
()
{
null_value
=
false
;
}
};
class
Cached_item_str
:
public
Cached_item_item
...
...
@@ -5330,6 +5340,10 @@ class Cached_item_str :public Cached_item_item
Cached_item_str
(
THD
*
thd
,
Item
*
arg
);
bool
cmp
(
void
);
int
cmp_read_only
();
void
clear
()
{
null_value
=
false
;
}
~
Cached_item_str
();
// Deallocate String:s
};
...
...
@@ -5341,6 +5355,12 @@ class Cached_item_real :public Cached_item_item
Cached_item_real
(
Item
*
item_par
)
:
Cached_item_item
(
item_par
),
value
(
0.0
)
{}
bool
cmp
(
void
);
int
cmp_read_only
();
double
get_value
(){
return
value
;}
void
clear
()
{
value
=
0.0
;
null_value
=
false
;
}
};
class
Cached_item_int
:
public
Cached_item_item
...
...
@@ -5350,6 +5370,12 @@ class Cached_item_int :public Cached_item_item
Cached_item_int
(
Item
*
item_par
)
:
Cached_item_item
(
item_par
),
value
(
0
)
{}
bool
cmp
(
void
);
int
cmp_read_only
();
longlong
get_value
(){
return
value
;}
void
clear
()
{
value
=
0.0
;
null_value
=
false
;
}
};
...
...
@@ -5360,6 +5386,12 @@ class Cached_item_decimal :public Cached_item_item
Cached_item_decimal
(
Item
*
item_par
);
bool
cmp
(
void
);
int
cmp_read_only
();
my_decimal
get_value
(){
return
value
;};
void
clear
()
{
null_value
=
false
;
my_decimal_set_zero
(
&
value
);
}
};
class
Cached_item_field
:
public
Cached_item
...
...
@@ -5377,6 +5409,10 @@ class Cached_item_field :public Cached_item
}
bool
cmp
(
void
);
int
cmp_read_only
();
void
clear
()
{
null_value
=
false
;
}
};
class
Item_default_value
:
public
Item_field
...
...
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