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
d55eeed8
Commit
d55eeed8
authored
Sep 23, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge from 4.1 to 5.0
parent
02c7645c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
18 deletions
+11
-18
mysql-test/r/loaddata.result
mysql-test/r/loaddata.result
+1
-0
mysql-test/r/type_decimal.result
mysql-test/r/type_decimal.result
+3
-1
mysql-test/r/union.result
mysql-test/r/union.result
+0
-15
mysql-test/t/loaddata.test
mysql-test/t/loaddata.test
+1
-0
sql/opt_sum.cc
sql/opt_sum.cc
+1
-0
sql/sql_load.cc
sql/sql_load.cc
+5
-2
No files found.
mysql-test/r/loaddata.result
View file @
d55eeed8
...
...
@@ -76,6 +76,7 @@ select * from t1;
id
0
SET @@SQL_MODE=@OLD_SQL_MODE;
drop table t1;
create table t1 (a int default 100, b int, c varchar(60));
load data infile '../../std_data/rpl_loaddata.dat' into table t1 (a, @b) set b=@b+10, c=concat("b=",@b);
select * from t1;
...
...
mysql-test/r/type_decimal.result
View file @
d55eeed8
...
...
@@ -674,9 +674,11 @@ a
drop table t1;
create table t1(a decimal(10,5), b decimal(10,1));
insert into t1 values(123.12345, 123.12345);
Warnings:
Note 1265 Data truncated for column 'b' at row 1
update t1 set b=a;
Warnings:
Warning
1265 Data truncated for column 'b' at row 1
Note
1265 Data truncated for column 'b' at row 1
select * from t1;
a b
123.12345 123.1
...
...
mysql-test/r/union.result
View file @
d55eeed8
...
...
@@ -780,21 +780,6 @@ t1 CREATE TABLE `t1` (
`b` longblob
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1,t2;
create table t1 (d decimal(10,1));
create table t2 (d decimal(10,9));
insert into t1 values ("100000000.0");
insert into t2 values ("1.23456780");
create table t3 select * from t2 union select * from t1;
select * from t3;
d
1.234567800
100000000.000000000
show create table t3;
Table Create Table
t3 CREATE TABLE `t3` (
`d` decimal(18,9) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1,t2,t3;
create table t1 select 1 union select -1;
select * from t1;
1
...
...
mysql-test/t/loaddata.test
View file @
d55eeed8
...
...
@@ -57,6 +57,7 @@ enable_query_log;
select
*
from
t1
;
--
exec
rm
$MYSQL_TEST_DIR
/
var
/
tmp
/
t1
SET
@@
SQL_MODE
=@
OLD_SQL_MODE
;
drop
table
t1
;
# End of 4.1 tests
...
...
sql/opt_sum.cc
View file @
d55eeed8
...
...
@@ -167,6 +167,7 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds)
{
((
Item_sum_count
*
)
item
)
->
make_const
(
count
);
recalc_const_item
=
1
;
}
}
else
const_result
=
0
;
...
...
sql/sql_load.cc
View file @
d55eeed8
...
...
@@ -677,8 +677,6 @@ read_sep_field(THD *thd, COPY_INFO &info, TABLE_LIST *table_list,
pos
=
read_info
.
row_start
;
length
=
(
uint
)
(
read_info
.
row_end
-
pos
);
if
(
field
==
table
->
next_number_field
)
table
->
auto_increment_field_not_null
=
TRUE
;
if
(
!
read_info
.
enclosed
&&
(
enclosed_length
&&
length
==
4
&&
!
memcmp
(
pos
,
"NULL"
,
4
))
||
(
length
==
1
&&
read_info
.
found_null
))
...
...
@@ -688,6 +686,8 @@ read_sep_field(THD *thd, COPY_INFO &info, TABLE_LIST *table_list,
Field
*
field
=
((
Item_field
*
)
item
)
->
field
;
field
->
reset
();
field
->
set_null
();
if
(
field
==
table
->
next_number_field
)
table
->
auto_increment_field_not_null
=
TRUE
;
if
(
!
field
->
maybe_null
())
{
if
(
field
->
type
()
==
FIELD_TYPE_TIMESTAMP
)
...
...
@@ -705,9 +705,12 @@ read_sep_field(THD *thd, COPY_INFO &info, TABLE_LIST *table_list,
if
(
item
->
type
()
==
Item
::
FIELD_ITEM
)
{
Field
*
field
=
((
Item_field
*
)
item
)
->
field
;
field
->
set_notnull
();
read_info
.
row_end
[
0
]
=
0
;
// Safe to change end marker
if
(
field
==
table
->
next_number_field
)
table
->
auto_increment_field_not_null
=
TRUE
;
field
->
store
((
char
*
)
pos
,
length
,
read_info
.
read_charset
);
}
else
...
...
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