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
27100534
Commit
27100534
authored
Jan 08, 2008
by
gkodinov/kgeorge@macbook.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge macbook.gmz:/Users/kgeorge/mysql/work/B33256-5.0-opt
into macbook.gmz:/Users/kgeorge/mysql/work/B33256-5.1-opt
parents
8b65423d
e4efb4a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
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
No files found.
mysql-test/r/type_decimal.result
View file @
27100534
...
...
@@ -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 Incorrect datetime value: '0000-00-00'
Warning 1292 Incorrect datetime value: '0000-00-00'
Warning 1292 Incorrect datetime value: '0000-00-00'
drop table t1;
CREATE TABLE t1 (
qty decimal(16,6) default NULL,
...
...
sql/field.h
View file @
27100534
...
...
@@ -1269,6 +1269,10 @@ class Field_newdate :public Field_str {
:
Field_str
(
ptr_arg
,
10
,
null_ptr_arg
,
null_bit_arg
,
unireg_check_arg
,
field_name_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
MYSQL_TYPE_DATE
;}
enum_field_types
real_type
()
const
{
return
MYSQL_TYPE_NEWDATE
;
}
enum
ha_base_keytype
key_type
()
const
{
return
HA_KEYTYPE_UINT24
;
}
...
...
sql/item.cc
View file @
27100534
...
...
@@ -4467,7 +4467,7 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table, bool fixed_length)
break
;
case
MYSQL_TYPE_NEWDATE
:
case
MYSQL_TYPE_DATE
:
field
=
new
Field_date
(
maybe_null
,
name
,
&
my_charset_bin
);
field
=
new
Field_
new
date
(
maybe_null
,
name
,
&
my_charset_bin
);
break
;
case
MYSQL_TYPE_TIME
:
field
=
new
Field_time
(
maybe_null
,
name
,
&
my_charset_bin
);
...
...
sql/item_sum.cc
View file @
27100534
...
...
@@ -633,7 +633,7 @@ Field *Item_sum_hybrid::create_tmp_field(bool group, TABLE *table,
*/
switch
(
args
[
0
]
->
field_type
())
{
case
MYSQL_TYPE_DATE
:
field
=
new
Field_date
(
maybe_null
,
name
,
collation
.
collation
);
field
=
new
Field_
new
date
(
maybe_null
,
name
,
collation
.
collation
);
break
;
case
MYSQL_TYPE_TIME
:
field
=
new
Field_time
(
maybe_null
,
name
,
collation
.
collation
);
...
...
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