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
afff7d7d
Commit
afff7d7d
authored
Mar 24, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
941943c0
05fe0782
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
mysql-test/r/warnings.result
mysql-test/r/warnings.result
+19
-0
mysql-test/t/warnings.test
mysql-test/t/warnings.test
+13
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-1
No files found.
mysql-test/r/warnings.result
View file @
afff7d7d
...
...
@@ -142,6 +142,25 @@ Warning 1265 Data truncated for column 'b' at row 10
select @@warning_count;
@@warning_count
50
set max_error_count=0;
show variables like 'max_error_count';
Variable_name Value
max_error_count 0
update t1 set b='hi';
Warnings:
select @@warning_count;
@@warning_count
50
show warnings;
Level Code Message
set max_error_count=65535;
show variables like 'max_error_count';
Variable_name Value
max_error_count 65535
set max_error_count=10;
show variables like 'max_error_count';
Variable_name Value
max_error_count 10
drop table t1;
create table t1 (id int) engine=isam;
Warnings:
...
...
mysql-test/t/warnings.test
View file @
afff7d7d
...
...
@@ -96,6 +96,19 @@ update t1 set b=a;
select
@@
warning_count
;
--
enable_ps_protocol
# Bug#9072
set
max_error_count
=
0
;
show
variables
like
'max_error_count'
;
update
t1
set
b
=
'hi'
;
--
disable_ps_protocol
select
@@
warning_count
;
--
enable_ps_protocol
show
warnings
;
set
max_error_count
=
65535
;
show
variables
like
'max_error_count'
;
set
max_error_count
=
10
;
show
variables
like
'max_error_count'
;
#
# Test for handler type
#
...
...
sql/mysqld.cc
View file @
afff7d7d
...
...
@@ -5225,7 +5225,7 @@ The minimum value for this variable is 4096.",
"Max number of errors/warnings to store for a statement."
,
(
gptr
*
)
&
global_system_variables
.
max_error_count
,
(
gptr
*
)
&
max_system_variables
.
max_error_count
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
DEFAULT_ERROR_COUNT
,
1
,
65535
,
0
,
1
,
0
},
0
,
GET_ULONG
,
REQUIRED_ARG
,
DEFAULT_ERROR_COUNT
,
0
,
65535
,
0
,
1
,
0
},
{
"max_heap_table_size"
,
OPT_MAX_HEP_TABLE_SIZE
,
"Don't allow creation of heap tables bigger than this."
,
(
gptr
*
)
&
global_system_variables
.
max_heap_table_size
,
...
...
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