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
8cd0f370
Commit
8cd0f370
authored
May 01, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jani@193.229.222.105:/my/bk/mysql-4.1
into hundin.mysql.fi:/home/jani/mysql-4.1 sql/set_var.cc: Auto merged
parents
cdd0cde8
09e83259
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 @
8cd0f370
...
...
@@ -2,7 +2,7 @@ drop table if exists t1;
set sql_mode="MySQL40";
select @@sql_mode;
@@sql_mode
NO_FIELD_OPTIONS,
MYSQL40
MYSQL40
set @@sql_mode="ANSI";
select @@sql_mode;
@@sql_mode
...
...
@@ -17,3 +17,32 @@ SELECT id FROM t1 GROUP BY id2;
id
drop table t1;
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 @
8cd0f370
...
...
@@ -26,4 +26,16 @@ drop table t1;
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
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