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
ceb2374b
Commit
ceb2374b
authored
Jul 22, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.2way
parents
ca3cd6da
491cdf39
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
6 deletions
+11
-6
INSTALL-WIN-SOURCE
INSTALL-WIN-SOURCE
+1
-1
mysql-test/r/warnings.result
mysql-test/r/warnings.result
+3
-0
mysql-test/t/warnings.test
mysql-test/t/warnings.test
+3
-0
sql/gen_lex_hash.cc
sql/gen_lex_hash.cc
+3
-2
sql/sql_insert.cc
sql/sql_insert.cc
+1
-3
No files found.
INSTALL-WIN-SOURCE
View file @
ceb2374b
...
...
@@ -92,7 +92,7 @@ To build the latest Windows source package from the current
BitKeeper source tree, use the following instructions. Please
note that this procedure must be performed on a system
running a Unix or Unix-like operating system. (The procedure
is know
to work well on Linux), for example.
is know
n to work well on Linux, for example.)
- Clone the BitKeeper source tree for MySQL (version 4.1
or above, as desired). For more information how to clone
...
...
mysql-test/r/warnings.result
View file @
ceb2374b
...
...
@@ -91,8 +91,11 @@ Warning 1263 Data truncated for column 'b' at row 3
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'a' at row 4
Warning 1263 Data truncated for column 'b' at row 4
insert into t2(b) values('mysqlab');
set sql_warnings=1;
insert into t2(b) values('mysqlab');
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
set sql_warnings=0;
drop table t1, t2;
create table t1(a char(10));
alter table t1 add b char;
...
...
mysql-test/t/warnings.test
View file @
ceb2374b
...
...
@@ -52,6 +52,9 @@ update t1 set d=c;
create
table
t2
(
a
tinyint
NOT
NULL
,
b
char
(
3
));
insert
into
t2
select
b
,
c
from
t1
;
insert
into
t2
(
b
)
values
(
'mysqlab'
);
set
sql_warnings
=
1
;
insert
into
t2
(
b
)
values
(
'mysqlab'
);
set
sql_warnings
=
0
;
drop
table
t1
,
t2
;
#
...
...
sql/gen_lex_hash.cc
View file @
ceb2374b
...
...
@@ -89,6 +89,7 @@ static struct my_option my_long_options[] =
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"version"
,
'V'
,
"Output version information and exit"
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
}
};
struct
hash_lex_struct
...
...
@@ -101,8 +102,8 @@ struct hash_lex_struct
};
int
ithis
;
};
hash_lex_struct
*
get_hash_struct_by_len
(
hash_lex_struct
**
root_by_len
,
hash_lex_struct
*
get_hash_struct_by_len
(
hash_lex_struct
**
root_by_len
,
int
len
,
int
*
max_len
)
{
if
(
*
max_len
<
len
){
...
...
sql/sql_insert.cc
View file @
ceb2374b
...
...
@@ -231,9 +231,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
info
.
update_fields
=&
update_fields
;
info
.
update_values
=&
update_values
;
// Don't count warnings for simple inserts
if
((
thd
->
client_capabilities
&
CLIENT_PROTOCOL_41
)
||
values_list
.
elements
>
1
||
(
thd
->
options
&
OPTION_WARNINGS
))
if
(
values_list
.
elements
>
1
||
(
thd
->
options
&
OPTION_WARNINGS
))
thd
->
count_cuted_fields
=
1
;
thd
->
cuted_fields
=
0L
;
table
->
next_number_field
=
table
->
found_next_number_field
;
...
...
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