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
e1cde8aa
Commit
e1cde8aa
authored
Jun 11, 2007
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error_simulation.result, item.cc, subselect.result, error_simulation.test:
Post merge fix.
parent
76f4f23f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
mysql-test/r/error_simulation.result
mysql-test/r/error_simulation.result
+1
-1
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+6
-6
mysql-test/t/error_simulation.test
mysql-test/t/error_simulation.test
+1
-0
sql/item.cc
sql/item.cc
+1
-1
No files found.
mysql-test/r/error_simulation.result
View file @
e1cde8aa
...
@@ -14,6 +14,6 @@ INSERT INTO t1 VALUES
...
@@ -14,6 +14,6 @@ INSERT INTO t1 VALUES
('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
set tmp_table_size=1024;
set tmp_table_size=1024;
SELECT MAX(a) FROM t1 GROUP BY a,b;
SELECT MAX(a) FROM t1 GROUP BY a,b;
ERROR 23000: Can't write; duplicate key in table ''
ERROR 23000: Can't write; duplicate key in table '
tmp_table
'
set tmp_table_size=default;
set tmp_table_size=default;
DROP TABLE t1;
DROP TABLE t1;
mysql-test/r/subselect.result
View file @
e1cde8aa
...
@@ -4074,6 +4074,12 @@ CREATE TABLE t1 (a int);
...
@@ -4074,6 +4074,12 @@ CREATE TABLE t1 (a int);
INSERT INTO t1 VALUES (1), (2);
INSERT INTO t1 VALUES (1), (2);
EXPLAIN EXTENDED
EXPLAIN EXTENDED
SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
SELECT * FROM (SELECT count(*) FROM t1 GROUP BY a) as res;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
Warnings:
Note 1003 select `res`.`count(*)` AS `count(*)` from (select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
DROP TABLE t1;
CREATE TABLE t1 (
CREATE TABLE t1 (
a varchar(255) default NULL,
a varchar(255) default NULL,
b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
b timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
...
@@ -4100,12 +4106,6 @@ d1
...
@@ -4100,12 +4106,6 @@ d1
1
1
1
1
DROP TABLE t1,t2;
DROP TABLE t1,t2;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2 100.00
2 DERIVED t1 ALL NULL NULL NULL NULL 2 100.00 Using temporary; Using filesort
Warnings:
Note 1003 select `res`.`count(*)` AS `count(*)` from (select count(0) AS `count(*)` from `test`.`t1` group by `test`.`t1`.`a`) `res`
DROP TABLE t1;
End of 5.0 tests.
End of 5.0 tests.
CREATE TABLE t1 (a int, b int);
CREATE TABLE t1 (a int, b int);
INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
...
...
mysql-test/t/error_simulation.test
View file @
e1cde8aa
...
@@ -21,6 +21,7 @@ INSERT INTO t1 VALUES
...
@@ -21,6 +21,7 @@ INSERT INTO t1 VALUES
set
tmp_table_size
=
1024
;
set
tmp_table_size
=
1024
;
--
replace_regex
/
in
table
'[^'
]
+
'/in table '
tmp_table
'
/
--
error
ER_DUP_KEY
--
error
ER_DUP_KEY
SELECT
MAX
(
a
)
FROM
t1
GROUP
BY
a
,
b
;
SELECT
MAX
(
a
)
FROM
t1
GROUP
BY
a
,
b
;
...
...
sql/item.cc
View file @
e1cde8aa
...
@@ -4403,7 +4403,7 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table, bool fixed_length)
...
@@ -4403,7 +4403,7 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table, bool fixed_length)
field
=
new
Field_blob
(
max_length
,
maybe_null
,
name
,
collation
.
collation
);
field
=
new
Field_blob
(
max_length
,
maybe_null
,
name
,
collation
.
collation
);
break
;
// Blob handled outside of case
break
;
// Blob handled outside of case
case
MYSQL_TYPE_GEOMETRY
:
case
MYSQL_TYPE_GEOMETRY
:
return
new
Field_geom
(
max_length
,
maybe_null
,
name
,
table
->
s
,
field
=
new
Field_geom
(
max_length
,
maybe_null
,
name
,
table
->
s
,
(
Field
::
geometry_type
)
(
Field
::
geometry_type
)
((
type
()
==
Item
::
TYPE_HOLDER
)
?
((
type
()
==
Item
::
TYPE_HOLDER
)
?
((
Item_type_holder
*
)
this
)
->
get_geometry_type
()
:
((
Item_type_holder
*
)
this
)
->
get_geometry_type
()
:
...
...
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