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
b427da76
Commit
b427da76
authored
Jul 15, 2013
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix main test suite on Windows
parent
00653d7f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
26 deletions
+6
-26
mysql-test/r/lowercase_table4.result
mysql-test/r/lowercase_table4.result
+2
-24
mysql-test/t/lowercase_table4.test
mysql-test/t/lowercase_table4.test
+2
-2
sql/sql_table.cc
sql/sql_table.cc
+2
-0
No files found.
mysql-test/r/lowercase_table4.result
View file @
b427da76
...
...
@@ -28,18 +28,7 @@ Create Table CREATE TABLE `Table2` (
KEY `fk1` (`c2`),
CONSTRAINT `fk1` FOREIGN KEY (`c2`) REFERENCES `Table1` (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS;
CONSTRAINT_CATALOG def
CONSTRAINT_SCHEMA mysql
CONSTRAINT_NAME innodb_index_stats_ibfk_1
UNIQUE_CONSTRAINT_CATALOG def
UNIQUE_CONSTRAINT_SCHEMA mysql
UNIQUE_CONSTRAINT_NAME PRIMARY
MATCH_OPTION NONE
UPDATE_RULE RESTRICT
DELETE_RULE RESTRICT
TABLE_NAME innodb_index_stats
REFERENCED_TABLE_NAME innodb_table_stats
SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_SCHEMA='test';
CONSTRAINT_CATALOG def
CONSTRAINT_SCHEMA test
CONSTRAINT_NAME fk1
...
...
@@ -98,18 +87,7 @@ Create Table CREATE TABLE `Customer` (
`Id` int(11) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS;
CONSTRAINT_CATALOG def
CONSTRAINT_SCHEMA mysql
CONSTRAINT_NAME innodb_index_stats_ibfk_1
UNIQUE_CONSTRAINT_CATALOG def
UNIQUE_CONSTRAINT_SCHEMA mysql
UNIQUE_CONSTRAINT_NAME PRIMARY
MATCH_OPTION NONE
UPDATE_RULE RESTRICT
DELETE_RULE RESTRICT
TABLE_NAME innodb_index_stats
REFERENCED_TABLE_NAME innodb_table_stats
SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_SCHEMA='test';
CONSTRAINT_CATALOG def
CONSTRAINT_SCHEMA test
CONSTRAINT_NAME product_order_ibfk_1
...
...
mysql-test/t/lowercase_table4.test
View file @
b427da76
...
...
@@ -72,7 +72,7 @@ CREATE TABLE `Table1`(c1 INT PRIMARY KEY) ENGINE=InnoDB;
CREATE
TABLE
`Table2`
(
c1
INT
PRIMARY
KEY
,
c2
INT
)
ENGINE
=
InnoDB
;
ALTER
TABLE
`Table2`
ADD
CONSTRAINT
fk1
FOREIGN
KEY
(
c2
)
REFERENCES
`Table1`
(
c1
);
query_vertical
SHOW
CREATE
TABLE
`Table2`
;
query_vertical
SELECT
*
FROM
INFORMATION_SCHEMA
.
REFERENTIAL_CONSTRAINTS
;
query_vertical
SELECT
*
FROM
INFORMATION_SCHEMA
.
REFERENTIAL_CONSTRAINTS
WHERE
CONSTRAINT_SCHEMA
=
'test'
;
DROP
TABLE
`Table2`
;
DROP
TABLE
`Table1`
;
...
...
@@ -101,7 +101,7 @@ CREATE TABLE Product_Order (No INT NOT NULL AUTO_INCREMENT,
query_vertical
SHOW
CREATE
TABLE
Product_Order
;
query_vertical
SHOW
CREATE
TABLE
Product
;
query_vertical
SHOW
CREATE
TABLE
Customer
;
query_vertical
SELECT
*
FROM
INFORMATION_SCHEMA
.
REFERENTIAL_CONSTRAINTS
;
query_vertical
SELECT
*
FROM
INFORMATION_SCHEMA
.
REFERENTIAL_CONSTRAINTS
WHERE
CONSTRAINT_SCHEMA
=
'test'
;
DROP
TABLE
Product_Order
;
DROP
TABLE
Product
;
DROP
TABLE
Customer
;
...
...
sql/sql_table.cc
View file @
b427da76
...
...
@@ -4631,7 +4631,9 @@ bool create_table_impl(THD *thd,
}
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
#ifdef HAVE_READLINK
if
(
thd
->
variables
.
sql_mode
&
MODE_NO_DIR_IN_CREATE
)
#endif
{
if
(
create_info
->
data_file_name
)
push_warning_printf
(
thd
,
Sql_condition
::
WARN_LEVEL_WARN
,
...
...
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