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
09e83259
Commit
09e83259
authored
May 01, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for Bug#14515
parent
bf510817
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
mysql-test/r/ansi.result
mysql-test/r/ansi.result
+30
-1
mysql-test/t/ansi.test
mysql-test/t/ansi.test
+12
-0
No files found.
mysql-test/r/ansi.result
View file @
09e83259
...
@@ -2,7 +2,7 @@ drop table if exists t1;
...
@@ -2,7 +2,7 @@ drop table if exists t1;
set sql_mode="MySQL40";
set sql_mode="MySQL40";
select @@sql_mode;
select @@sql_mode;
@@sql_mode
@@sql_mode
NO_FIELD_OPTIONS,
MYSQL40
MYSQL40
set @@sql_mode="ANSI";
set @@sql_mode="ANSI";
select @@sql_mode;
select @@sql_mode;
@@sql_mode
@@sql_mode
...
@@ -17,3 +17,32 @@ SELECT id FROM t1 GROUP BY id2;
...
@@ -17,3 +17,32 @@ SELECT id FROM t1 GROUP BY id2;
id
id
drop table t1;
drop table t1;
SET @@SQL_MODE="";
SET @@SQL_MODE="";
CREATE TABLE t1 (i int auto_increment NOT NULL, PRIMARY KEY (i));
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) NOT NULL auto_increment,
PRIMARY KEY (`i`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
SET @@SQL_MODE="MYSQL323";
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) NOT NULL auto_increment,
PRIMARY KEY (`i`)
) TYPE=MyISAM
SET @@SQL_MODE="MYSQL40";
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) NOT NULL auto_increment,
PRIMARY KEY (`i`)
) TYPE=MyISAM
SET @@SQL_MODE="NO_FIELD_OPTIONS";
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i` int(11) NOT NULL,
PRIMARY KEY (`i`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
mysql-test/t/ansi.test
View file @
09e83259
...
@@ -26,4 +26,16 @@ drop table t1;
...
@@ -26,4 +26,16 @@ drop table t1;
SET
@@
SQL_MODE
=
""
;
SET
@@
SQL_MODE
=
""
;
# Bug#14515
CREATE
TABLE
t1
(
i
int
auto_increment
NOT
NULL
,
PRIMARY
KEY
(
i
));
SHOW
CREATE
TABLE
t1
;
SET
@@
SQL_MODE
=
"MYSQL323"
;
SHOW
CREATE
TABLE
t1
;
SET
@@
SQL_MODE
=
"MYSQL40"
;
SHOW
CREATE
TABLE
t1
;
SET
@@
SQL_MODE
=
"NO_FIELD_OPTIONS"
;
SHOW
CREATE
TABLE
t1
;
DROP
TABLE
t1
;
# End of 4.1 tests
# End of 4.1 tests
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