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
2b373758
Commit
2b373758
authored
May 19, 2009
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.0-bugteam->5.1-bugteam merge
parents
a3b26f1a
551e74c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/include/mix1.inc
mysql-test/include/mix1.inc
+9
-0
mysql-test/r/innodb_mysql.result
mysql-test/r/innodb_mysql.result
+12
-0
storage/innobase/dict/dict0dict.c
storage/innobase/dict/dict0dict.c
+1
-1
No files found.
mysql-test/include/mix1.inc
View file @
2b373758
...
@@ -1162,6 +1162,15 @@ ROLLBACK;
...
@@ -1162,6 +1162,15 @@ ROLLBACK;
--
error
1305
--
error
1305
ROLLBACK
TO
SAVEPOINT
s4
;
ROLLBACK
TO
SAVEPOINT
s4
;
#
# Bug#39793 Foreign keys not constructed when column has a '#' in a comment or default value
#
#This statement should be written on a single line for proper testing
CREATE
TABLE
t1
(
f1
INTEGER
PRIMARY
KEY
COMMENT
'My ID#'
,
f2
INTEGER
DEFAULT
NULL
,
f3
CHAR
(
10
)
DEFAULT
'My ID#'
,
CONSTRAINT
f2_ref
FOREIGN
KEY
(
f2
)
REFERENCES
t1
(
f1
))
ENGINE
=
INNODB
;
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
...
...
mysql-test/r/innodb_mysql.result
View file @
2b373758
...
@@ -1408,6 +1408,18 @@ SAVEPOINT s4;
...
@@ -1408,6 +1408,18 @@ SAVEPOINT s4;
ROLLBACK;
ROLLBACK;
ROLLBACK TO SAVEPOINT s4;
ROLLBACK TO SAVEPOINT s4;
ERROR 42000: SAVEPOINT s4 does not exist
ERROR 42000: SAVEPOINT s4 does not exist
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY COMMENT 'My ID#', f2 INTEGER DEFAULT NULL, f3 CHAR(10) DEFAULT 'My ID#', CONSTRAINT f2_ref FOREIGN KEY (f2) REFERENCES t1 (f1)) ENGINE=INNODB;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`f1` int(11) NOT NULL COMMENT 'My ID#',
`f2` int(11) DEFAULT NULL,
`f3` char(10) DEFAULT 'My ID#',
PRIMARY KEY (`f1`),
KEY `f2_ref` (`f2`),
CONSTRAINT `f2_ref` FOREIGN KEY (`f2`) REFERENCES `t1` (`f1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
DROP TABLE t1;
End of 5.0 tests
End of 5.0 tests
CREATE TABLE `t2` (
CREATE TABLE `t2` (
`k` int(11) NOT NULL auto_increment,
`k` int(11) NOT NULL auto_increment,
...
...
storage/innobase/dict/dict0dict.c
View file @
2b373758
...
@@ -2616,7 +2616,7 @@ dict_strip_comments(
...
@@ -2616,7 +2616,7 @@ dict_strip_comments(
}
else
if
(
quote
)
{
}
else
if
(
quote
)
{
/* Within quotes: do not look for
/* Within quotes: do not look for
starting quotes or comments. */
starting quotes or comments. */
}
else
if
(
*
sptr
==
'"'
||
*
sptr
==
'`'
)
{
}
else
if
(
*
sptr
==
'"'
||
*
sptr
==
'`'
||
*
sptr
==
'\''
)
{
/* Starting quote: remember the quote character. */
/* Starting quote: remember the quote character. */
quote
=
*
sptr
;
quote
=
*
sptr
;
}
else
if
(
*
sptr
==
'#'
}
else
if
(
*
sptr
==
'#'
...
...
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