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
92a3b171
Commit
92a3b171
authored
Feb 02, 2011
by
Dmitry Lenev
Browse files
Options
Browse Files
Download
Plain Diff
Merged fix for bug #58650 "Failing assertion:
primary_key_no == -1 || primary_key_no == 0" into mysql-5.5 tree.
parents
2b4e3cde
dafd7106
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/include/gis_keys.inc
mysql-test/include/gis_keys.inc
+16
-0
mysql-test/r/gis.result
mysql-test/r/gis.result
+12
-0
mysql-test/suite/innodb/r/innodb_gis.result
mysql-test/suite/innodb/r/innodb_gis.result
+12
-0
sql/field.cc
sql/field.cc
+1
-0
No files found.
mysql-test/include/gis_keys.inc
View file @
92a3b171
...
@@ -44,3 +44,19 @@ SELECT COUNT(*) FROM t2 IGNORE INDEX(p) WHERE p=POINTFROMTEXT('POINT(1 2)');
...
@@ -44,3 +44,19 @@ SELECT COUNT(*) FROM t2 IGNORE INDEX(p) WHERE p=POINTFROMTEXT('POINT(1 2)');
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
--
echo
#
--
echo
# Test for bug #58650 "Failing assertion: primary_key_no == -1 ||
--
echo
# primary_key_no == 0".
--
echo
#
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
--
echo
# The minimal test case.
create
table
t1
(
a
int
not
null
,
b
linestring
not
null
,
unique
key
b
(
b
(
12
)),
unique
key
a
(
a
));
drop
table
t1
;
--
echo
# The original test case.
create
table
t1
(
a
int
not
null
,
b
linestring
not
null
,
unique
key
b
(
b
(
12
)));
create
unique
index
a
on
t1
(
a
);
drop
table
t1
;
mysql-test/r/gis.result
View file @
92a3b171
...
@@ -960,6 +960,18 @@ COUNT(*)
...
@@ -960,6 +960,18 @@ COUNT(*)
2
2
DROP TABLE t1, t2;
DROP TABLE t1, t2;
End of 5.0 tests
End of 5.0 tests
#
# Test for bug #58650 "Failing assertion: primary_key_no == -1 ||
# primary_key_no == 0".
#
drop table if exists t1;
# The minimal test case.
create table t1 (a int not null, b linestring not null, unique key b (b(12)), unique key a (a));
drop table t1;
# The original test case.
create table t1 (a int not null, b linestring not null, unique key b (b(12)));
create unique index a on t1(a);
drop table t1;
create table `t1` (`col002` point)engine=myisam;
create table `t1` (`col002` point)engine=myisam;
insert into t1 values (),(),();
insert into t1 values (),(),();
select min(`col002`) from t1 union select `col002` from t1;
select min(`col002`) from t1 union select `col002` from t1;
...
...
mysql-test/suite/innodb/r/innodb_gis.result
View file @
92a3b171
...
@@ -585,5 +585,17 @@ COUNT(*)
...
@@ -585,5 +585,17 @@ COUNT(*)
2
2
DROP TABLE t1, t2;
DROP TABLE t1, t2;
End of 5.0 tests
End of 5.0 tests
#
# Test for bug #58650 "Failing assertion: primary_key_no == -1 ||
# primary_key_no == 0".
#
drop table if exists t1;
# The minimal test case.
create table t1 (a int not null, b linestring not null, unique key b (b(12)), unique key a (a));
drop table t1;
# The original test case.
create table t1 (a int not null, b linestring not null, unique key b (b(12)));
create unique index a on t1(a);
drop table t1;
create table t1 (g geometry not null, spatial gk(g)) engine=innodb;
create table t1 (g geometry not null, spatial gk(g)) engine=innodb;
ERROR HY000: The used table type doesn't support SPATIAL indexes
ERROR HY000: The used table type doesn't support SPATIAL indexes
sql/field.cc
View file @
92a3b171
...
@@ -9073,6 +9073,7 @@ void Create_field::create_length_to_internal_length(void)
...
@@ -9073,6 +9073,7 @@ void Create_field::create_length_to_internal_length(void)
case
MYSQL_TYPE_MEDIUM_BLOB
:
case
MYSQL_TYPE_MEDIUM_BLOB
:
case
MYSQL_TYPE_LONG_BLOB
:
case
MYSQL_TYPE_LONG_BLOB
:
case
MYSQL_TYPE_BLOB
:
case
MYSQL_TYPE_BLOB
:
case
MYSQL_TYPE_GEOMETRY
:
case
MYSQL_TYPE_VAR_STRING
:
case
MYSQL_TYPE_VAR_STRING
:
case
MYSQL_TYPE_STRING
:
case
MYSQL_TYPE_STRING
:
case
MYSQL_TYPE_VARCHAR
:
case
MYSQL_TYPE_VARCHAR
:
...
...
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