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
70d2261d
Commit
70d2261d
authored
May 01, 2006
by
jani@hundin.mysql.fi
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
parents
c4280491
e2c3c372
Changes
2
Show 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 @
70d2261d
...
@@ -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 @
70d2261d
...
@@ -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