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
a5075a68
Commit
a5075a68
authored
Jul 21, 2007
by
gshchepa/uchum@gleb.loc
Browse files
Options
Browse Files
Download
Plain Diff
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
parents
27f11688
4990843b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+22
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+22
-0
No files found.
mysql-test/r/mysqldump.result
View file @
a5075a68
...
...
@@ -3573,6 +3573,28 @@ SELECT * FROM v1;
1
DROP VIEW v1;
#
# Bug #29788: mysqldump discards the NO_AUTO_VALUE_ON_ZERO value of
# the SQL_MODE variable after the dumping of triggers.
#
CREATE TABLE t1 (c1 INT);
CREATE TRIGGER t1bd BEFORE DELETE ON t1 FOR EACH ROW BEGIN END;
CREATE TABLE t2 (c1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
SET @TMP_SQL_MODE = @@SQL_MODE;
SET SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO';
INSERT INTO t2 VALUES (0), (1), (2);
SET SQL_MODE = @TMP_SQL_MODE;
SELECT * FROM t2;
c1
0
1
2
SELECT * FROM t2;
c1
0
1
2
DROP TABLE t1,t2;
#
# End of 5.0 tests
#
drop table if exists t1;
...
...
mysql-test/t/mysqldump.test
View file @
a5075a68
...
...
@@ -1554,6 +1554,28 @@ DROP VIEW v1;
SELECT
*
FROM
v1
;
DROP
VIEW
v1
;
--
echo
#
--
echo
# Bug #29788: mysqldump discards the NO_AUTO_VALUE_ON_ZERO value of
--
echo
# the SQL_MODE variable after the dumping of triggers.
--
echo
#
CREATE
TABLE
t1
(
c1
INT
);
CREATE
TRIGGER
t1bd
BEFORE
DELETE
ON
t1
FOR
EACH
ROW
BEGIN
END
;
CREATE
TABLE
t2
(
c1
INT
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
);
SET
@
TMP_SQL_MODE
=
@@
SQL_MODE
;
SET
SQL_MODE
=
'NO_AUTO_VALUE_ON_ZERO'
;
INSERT
INTO
t2
VALUES
(
0
),
(
1
),
(
2
);
SET
SQL_MODE
=
@
TMP_SQL_MODE
;
SELECT
*
FROM
t2
;
--
exec
$MYSQL_DUMP
--
routines
test
>
$MYSQLTEST_VARDIR
/
tmp
/
bug29788
.
sql
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
bug29788
.
sql
SELECT
*
FROM
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# End of 5.0 tests
--
echo
#
...
...
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