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
7fe932ed
Commit
7fe932ed
authored
Jan 07, 2008
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B33256-5.0-opt
parents
22d1a50d
e4efb4a5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
mysql-test/r/type_decimal.result
mysql-test/r/type_decimal.result
+0
-4
sql/field.h
sql/field.h
+4
-0
sql/item.cc
sql/item.cc
+1
-1
sql/item_sum.cc
sql/item_sum.cc
+1
-1
sql/item_timefunc.cc
sql/item_timefunc.cc
+1
-1
sql/item_timefunc.h
sql/item_timefunc.h
+3
-3
No files found.
mysql-test/r/type_decimal.result
View file @
7fe932ed
...
...
@@ -786,10 +786,6 @@ from (select 1 as s,'t' as t union select null, null ) as sub1;
select group_concat(t) from t1 group by week(date)/10;
group_concat(t)
t
Warnings:
Warning 1292 Truncated incorrect datetime value: '0000-00-00'
Warning 1292 Truncated incorrect datetime value: '0000-00-00'
Warning 1292 Truncated incorrect datetime value: '0000-00-00'
drop table t1;
CREATE TABLE t1 (
qty decimal(16,6) default NULL,
...
...
sql/field.h
View file @
7fe932ed
...
...
@@ -962,6 +962,10 @@ public:
:
Field_str
(
ptr_arg
,
10
,
null_ptr_arg
,
null_bit_arg
,
unireg_check_arg
,
field_name_arg
,
table_arg
,
cs
)
{}
Field_newdate
(
bool
maybe_null_arg
,
const
char
*
field_name_arg
,
struct
st_table
*
table_arg
,
CHARSET_INFO
*
cs
)
:
Field_str
((
char
*
)
0
,
10
,
maybe_null_arg
?
(
uchar
*
)
""
:
0
,
0
,
NONE
,
field_name_arg
,
table_arg
,
cs
)
{}
enum_field_types
type
()
const
{
return
FIELD_TYPE_DATE
;}
enum_field_types
real_type
()
const
{
return
FIELD_TYPE_NEWDATE
;
}
enum
ha_base_keytype
key_type
()
const
{
return
HA_KEYTYPE_UINT24
;
}
...
...
sql/item.cc
View file @
7fe932ed
...
...
@@ -4384,7 +4384,7 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table)
name
,
table
,
0
,
unsigned_flag
);
case
MYSQL_TYPE_NEWDATE
:
case
MYSQL_TYPE_DATE
:
return
new
Field_date
(
maybe_null
,
name
,
table
,
&
my_charset_bin
);
return
new
Field_
new
date
(
maybe_null
,
name
,
table
,
&
my_charset_bin
);
case
MYSQL_TYPE_TIME
:
return
new
Field_time
(
maybe_null
,
name
,
table
,
&
my_charset_bin
);
case
MYSQL_TYPE_TIMESTAMP
:
...
...
sql/item_sum.cc
View file @
7fe932ed
...
...
@@ -628,7 +628,7 @@ Field *Item_sum_hybrid::create_tmp_field(bool group, TABLE *table,
*/
switch
(
args
[
0
]
->
field_type
())
{
case
MYSQL_TYPE_DATE
:
return
new
Field_date
(
maybe_null
,
name
,
table
,
collation
.
collation
);
return
new
Field_
new
date
(
maybe_null
,
name
,
table
,
collation
.
collation
);
case
MYSQL_TYPE_TIME
:
return
new
Field_time
(
maybe_null
,
name
,
table
,
collation
.
collation
);
case
MYSQL_TYPE_TIMESTAMP
:
...
...
sql/item_timefunc.cc
View file @
7fe932ed
...
...
@@ -3303,7 +3303,7 @@ Field *Item_func_str_to_date::tmp_table_field(TABLE *t_arg)
if
(
cached_field_type
==
MYSQL_TYPE_TIME
)
return
(
new
Field_time
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
if
(
cached_field_type
==
MYSQL_TYPE_DATE
)
return
(
new
Field_date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
return
(
new
Field_
new
date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
if
(
cached_field_type
==
MYSQL_TYPE_DATETIME
)
return
(
new
Field_datetime
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
return
(
new
Field_string
(
max_length
,
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
...
...
sql/item_timefunc.h
View file @
7fe932ed
...
...
@@ -340,7 +340,7 @@ public:
}
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
return
(
new
Field_date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
return
(
new
Field_
new
date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
}
bool
result_as_longlong
()
{
return
TRUE
;
}
my_decimal
*
val_decimal
(
my_decimal
*
decimal_value
)
...
...
@@ -784,7 +784,7 @@ public:
enum_field_types
field_type
()
const
{
return
MYSQL_TYPE_DATE
;
}
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
return
(
new
Field_date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
return
(
new
Field_
new
date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
}
void
fix_length_and_dec
()
{
...
...
@@ -884,7 +884,7 @@ public:
}
Field
*
tmp_table_field
(
TABLE
*
t_arg
)
{
return
(
new
Field_date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
return
(
new
Field_
new
date
(
maybe_null
,
name
,
t_arg
,
&
my_charset_bin
));
}
longlong
val_int
();
my_decimal
*
val_decimal
(
my_decimal
*
decimal_value
)
...
...
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