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
1b6c65c1
Commit
1b6c65c1
authored
Dec 20, 2002
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
less default_charset_info
parent
cb619f3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sql/item.cc
sql/item.cc
+6
-6
No files found.
sql/item.cc
View file @
1b6c65c1
...
@@ -121,7 +121,7 @@ bool Item_string::eq(const Item *item, bool binary_cmp) const
...
@@ -121,7 +121,7 @@ bool Item_string::eq(const Item *item, bool binary_cmp) const
bool
Item
::
get_date
(
TIME
*
ltime
,
bool
fuzzydate
)
bool
Item
::
get_date
(
TIME
*
ltime
,
bool
fuzzydate
)
{
{
char
buff
[
40
];
char
buff
[
40
];
String
tmp
(
buff
,
sizeof
(
buff
),
default_charset_info
),
*
res
;
String
tmp
(
buff
,
sizeof
(
buff
),
NULL
),
*
res
;
if
(
!
(
res
=
val_str
(
&
tmp
))
||
if
(
!
(
res
=
val_str
(
&
tmp
))
||
str_to_TIME
(
res
->
ptr
(),
res
->
length
(),
ltime
,
fuzzydate
)
==
TIMESTAMP_NONE
)
str_to_TIME
(
res
->
ptr
(),
res
->
length
(),
ltime
,
fuzzydate
)
==
TIMESTAMP_NONE
)
{
{
...
@@ -139,7 +139,7 @@ bool Item::get_date(TIME *ltime,bool fuzzydate)
...
@@ -139,7 +139,7 @@ bool Item::get_date(TIME *ltime,bool fuzzydate)
bool
Item
::
get_time
(
TIME
*
ltime
)
bool
Item
::
get_time
(
TIME
*
ltime
)
{
{
char
buff
[
40
];
char
buff
[
40
];
String
tmp
(
buff
,
sizeof
(
buff
),
default_charset_info
),
*
res
;
String
tmp
(
buff
,
sizeof
(
buff
),
NULL
),
*
res
;
if
(
!
(
res
=
val_str
(
&
tmp
))
||
if
(
!
(
res
=
val_str
(
&
tmp
))
||
str_to_time
(
res
->
ptr
(),
res
->
length
(),
ltime
))
str_to_time
(
res
->
ptr
(),
res
->
length
(),
ltime
))
{
{
...
@@ -1146,7 +1146,7 @@ Item *resolve_const_item(Item *item,Item *comp_item)
...
@@ -1146,7 +1146,7 @@ Item *resolve_const_item(Item *item,Item *comp_item)
if
(
res_type
==
STRING_RESULT
)
if
(
res_type
==
STRING_RESULT
)
{
{
char
buff
[
MAX_FIELD_WIDTH
];
char
buff
[
MAX_FIELD_WIDTH
];
String
tmp
(
buff
,
sizeof
(
buff
),
default_charset_info
),
*
result
;
String
tmp
(
buff
,
sizeof
(
buff
),
NULL
),
*
result
;
result
=
item
->
val_str
(
&
tmp
);
result
=
item
->
val_str
(
&
tmp
);
if
(
item
->
null_value
)
if
(
item
->
null_value
)
{
{
...
@@ -1160,7 +1160,7 @@ Item *resolve_const_item(Item *item,Item *comp_item)
...
@@ -1160,7 +1160,7 @@ Item *resolve_const_item(Item *item,Item *comp_item)
#ifdef DELETE_ITEMS
#ifdef DELETE_ITEMS
delete
item
;
delete
item
;
#endif
#endif
return
new
Item_string
(
name
,
tmp_str
,
length
,
default_charset_info
);
return
new
Item_string
(
name
,
tmp_str
,
length
,
result
->
charset
()
);
}
}
if
(
res_type
==
INT_RESULT
)
if
(
res_type
==
INT_RESULT
)
{
{
...
@@ -1201,8 +1201,8 @@ bool field_is_equal_to_item(Field *field,Item *item)
...
@@ -1201,8 +1201,8 @@ bool field_is_equal_to_item(Field *field,Item *item)
{
{
char
item_buff
[
MAX_FIELD_WIDTH
];
char
item_buff
[
MAX_FIELD_WIDTH
];
char
field_buff
[
MAX_FIELD_WIDTH
];
char
field_buff
[
MAX_FIELD_WIDTH
];
String
item_tmp
(
item_buff
,
sizeof
(
item_buff
),
default_charset_info
),
*
item_result
;
String
item_tmp
(
item_buff
,
sizeof
(
item_buff
),
NULL
),
*
item_result
;
String
field_tmp
(
field_buff
,
sizeof
(
field_buff
),
default_charset_info
);
String
field_tmp
(
field_buff
,
sizeof
(
field_buff
),
NULL
);
item_result
=
item
->
val_str
(
&
item_tmp
);
item_result
=
item
->
val_str
(
&
item_tmp
);
if
(
item
->
null_value
)
if
(
item
->
null_value
)
return
1
;
// This must be true
return
1
;
// This must be true
...
...
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