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
23c51450
Commit
23c51450
authored
Jul 14, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.1 -> 5.0 merge fixes
parent
35bfad1e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
29 deletions
+14
-29
mysql-test/r/mysqldump-max.result
mysql-test/r/mysqldump-max.result
+0
-12
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+0
-1
mysql-test/r/ps.result
mysql-test/r/ps.result
+14
-14
sql/sql_lex.cc
sql/sql_lex.cc
+0
-1
sql/table.cc
sql/table.cc
+0
-1
No files found.
mysql-test/r/mysqldump-max.result
View file @
23c51450
...
@@ -115,7 +115,6 @@ CREATE TABLE `t1` (
...
@@ -115,7 +115,6 @@ CREATE TABLE `t1` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
...
@@ -125,7 +124,6 @@ CREATE TABLE `t2` (
...
@@ -125,7 +124,6 @@ CREATE TABLE `t2` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
...
@@ -135,7 +133,6 @@ CREATE TABLE `t3` (
...
@@ -135,7 +133,6 @@ CREATE TABLE `t3` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
...
@@ -145,7 +142,6 @@ CREATE TABLE `t4` (
...
@@ -145,7 +142,6 @@ CREATE TABLE `t4` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
...
@@ -155,7 +151,6 @@ CREATE TABLE `t5` (
...
@@ -155,7 +151,6 @@ CREATE TABLE `t5` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
...
@@ -165,7 +160,6 @@ CREATE TABLE `t6` (
...
@@ -165,7 +160,6 @@ CREATE TABLE `t6` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
INSERT IGNORE INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT IGNORE INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t6` ENABLE KEYS */;
/*!40000 ALTER TABLE `t6` ENABLE KEYS */;
...
@@ -200,7 +194,6 @@ CREATE TABLE `t1` (
...
@@ -200,7 +194,6 @@ CREATE TABLE `t1` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
INSERT DELAYED INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
...
@@ -210,7 +203,6 @@ CREATE TABLE `t2` (
...
@@ -210,7 +203,6 @@ CREATE TABLE `t2` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
INSERT DELAYED INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
...
@@ -220,7 +212,6 @@ CREATE TABLE `t3` (
...
@@ -220,7 +212,6 @@ CREATE TABLE `t3` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
INSERT DELAYED INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
...
@@ -230,7 +221,6 @@ CREATE TABLE `t4` (
...
@@ -230,7 +221,6 @@ CREATE TABLE `t4` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
INSERT DELAYED INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
...
@@ -240,7 +230,6 @@ CREATE TABLE `t5` (
...
@@ -240,7 +230,6 @@ CREATE TABLE `t5` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
INSERT DELAYED INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
...
@@ -250,7 +239,6 @@ CREATE TABLE `t6` (
...
@@ -250,7 +239,6 @@ CREATE TABLE `t6` (
`name` varchar(32) default NULL
`name` varchar(32) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
INSERT INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t6` ENABLE KEYS */;
/*!40000 ALTER TABLE `t6` ENABLE KEYS */;
...
...
mysql-test/r/mysqldump.result
View file @
23c51450
...
@@ -656,7 +656,6 @@ CREATE TABLE `t1` (
...
@@ -656,7 +656,6 @@ CREATE TABLE `t1` (
`a` int(11) default NULL
`a` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6);
INSERT DELAYED IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6);
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
...
...
mysql-test/r/ps.result
View file @
23c51450
...
@@ -485,6 +485,20 @@ execute stmt;
...
@@ -485,6 +485,20 @@ execute stmt;
pnum
pnum
deallocate prepare stmt;
deallocate prepare stmt;
drop table t1, t2;
drop table t1, t2;
drop table if exists t1;
create temporary table if not exists t1 (a1 int);
prepare stmt from "delete t1 from t1 where (cast(a1/3 as unsigned) * 3) = a1";
drop temporary table t1;
create temporary table if not exists t1 (a1 int);
execute stmt;
drop temporary table t1;
create temporary table if not exists t1 (a1 int);
execute stmt;
drop temporary table t1;
create temporary table if not exists t1 (a1 int);
execute stmt;
drop temporary table t1;
deallocate prepare stmt;
create table t1 (a varchar(20));
create table t1 (a varchar(20));
insert into t1 values ('foo');
insert into t1 values ('foo');
prepare stmt FROM 'SELECT char_length (a) FROM t1';
prepare stmt FROM 'SELECT char_length (a) FROM t1';
...
@@ -502,20 +516,6 @@ SELECT FOUND_ROWS();
...
@@ -502,20 +516,6 @@ SELECT FOUND_ROWS();
FOUND_ROWS()
FOUND_ROWS()
2
2
deallocate prepare stmt;
deallocate prepare stmt;
drop table if exists t1;
create temporary table if not exists t1 (a1 int);
prepare stmt from "delete t1 from t1 where (cast(a1/3 as unsigned) * 3) = a1";
drop temporary table t1;
create temporary table if not exists t1 (a1 int);
execute stmt;
drop temporary table t1;
create temporary table if not exists t1 (a1 int);
execute stmt;
drop temporary table t1;
create temporary table if not exists t1 (a1 int);
execute stmt;
drop temporary table t1;
deallocate prepare stmt;
create table t1 (a char(3) not null, b char(3) not null,
create table t1 (a char(3) not null, b char(3) not null,
c char(3) not null, primary key (a, b, c));
c char(3) not null, primary key (a, b, c));
create table t2 like t1;
create table t2 like t1;
...
...
sql/sql_lex.cc
View file @
23c51450
...
@@ -124,7 +124,6 @@ void lex_start(THD *thd, uchar *buf,uint length)
...
@@ -124,7 +124,6 @@ void lex_start(THD *thd, uchar *buf,uint length)
lex
->
value_list
.
empty
();
lex
->
value_list
.
empty
();
lex
->
update_list
.
empty
();
lex
->
update_list
.
empty
();
lex
->
param_list
.
empty
();
lex
->
param_list
.
empty
();
lex
->
auxilliary_table_list
.
empty
();
lex
->
view_list
.
empty
();
lex
->
view_list
.
empty
();
lex
->
prepared_stmt_params
.
empty
();
lex
->
prepared_stmt_params
.
empty
();
lex
->
unit
.
next
=
lex
->
unit
.
master
=
lex
->
unit
.
next
=
lex
->
unit
.
master
=
...
...
sql/table.cc
View file @
23c51450
...
@@ -2999,7 +2999,6 @@ void st_table_list::reinit_before_use(THD * /* thd */)
...
@@ -2999,7 +2999,6 @@ void st_table_list::reinit_before_use(THD * /* thd */)
were closed in the end of previous prepare or execute call.
were closed in the end of previous prepare or execute call.
*/
*/
table
=
0
;
table
=
0
;
table_list
=
0
;
}
}
...
...
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