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
ec33d794
Commit
ec33d794
authored
May 06, 2004
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/dbdata/psergey/mysql-4.1-code-cleanup
parents
5030d280
7c337622
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
sql/item.cc
sql/item.cc
+4
-0
sql/item.h
sql/item.h
+1
-0
No files found.
sql/item.cc
View file @
ec33d794
...
...
@@ -745,6 +745,8 @@ double Item_param::val()
{
DBUG_ASSERT
(
value_is_set
==
1
);
int
err
;
if
(
null_value
)
return
0.0
;
switch
(
item_result_type
)
{
case
STRING_RESULT
:
return
(
double
)
my_strntod
(
str_value
.
charset
(),
(
char
*
)
str_value
.
ptr
(),
...
...
@@ -761,6 +763,8 @@ longlong Item_param::val_int()
{
DBUG_ASSERT
(
value_is_set
==
1
);
int
err
;
if
(
null_value
)
return
0
;
switch
(
item_result_type
)
{
case
STRING_RESULT
:
return
my_strntoll
(
str_value
.
charset
(),
...
...
sql/item.h
View file @
ec33d794
...
...
@@ -157,6 +157,7 @@ public:
virtual
Item_result
result_type
()
const
{
return
REAL_RESULT
;
}
virtual
enum_field_types
field_type
()
const
;
virtual
enum
Type
type
()
const
=
0
;
/* valXXX methods must return NULL or 0 or 0.0 if null_value is set. */
virtual
double
val
()
=
0
;
virtual
longlong
val_int
()
=
0
;
virtual
String
*
val_str
(
String
*
)
=
0
;
...
...
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