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
fc234f2e
Commit
fc234f2e
authored
Jun 23, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#4261 - mysqldump omits NULLs with --skip-extended-insert
parent
9f45c9e3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
client/mysqldump.c
client/mysqldump.c
+2
-0
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+2
-1
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+3
-2
No files found.
client/mysqldump.c
View file @
fc234f2e
...
...
@@ -1544,6 +1544,8 @@ static void dumpTable(uint numFields, char *table)
fputs
(
ptr
,
md_result_file
);
}
}
else
fputs
(
"NULL"
,
md_result_file
);
}
}
...
...
mysql-test/r/mysqldump.result
View file @
fc234f2e
...
...
@@ -141,7 +141,7 @@ INSERT INTO t1 VALUES ("1\""), ("\"2");
</mysqldump>
DROP TABLE t1;
CREATE TABLE t1 (a VARCHAR(255)) DEFAULT CHARSET koi8r;
INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5');
INSERT INTO t1 VALUES (_koi8r x'C1C2C3C4C5')
, (NULL)
;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
...
...
@@ -159,6 +159,7 @@ CREATE TABLE `t1` (
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
LOCK TABLES `t1` WRITE;
INSERT INTO `t1` VALUES ('абцде');
INSERT INTO `t1` VALUES (NULL);
UNLOCK TABLES;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
...
...
mysql-test/t/mysqldump.test
View file @
fc234f2e
...
...
@@ -73,11 +73,12 @@ DROP TABLE t1;
#
# Bug #1994
# Bug #4261
#
CREATE
TABLE
t1
(
a
VARCHAR
(
255
))
DEFAULT
CHARSET
koi8r
;
INSERT
INTO
t1
VALUES
(
_koi8r
x
'C1C2C3C4C5'
);
--
exec
$MYSQL_DUMP
--
skip
-
comments
test
t1
INSERT
INTO
t1
VALUES
(
_koi8r
x
'C1C2C3C4C5'
)
,
(
NULL
)
;
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
skip
-
extended
-
insert
test
t1
DROP
TABLE
t1
;
#
...
...
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