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
83c8e2c9
Commit
83c8e2c9
authored
May 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merging
sql/handler.h: Auto merged sql/sql_table.cc: Auto merged
parents
0a9c02f1
f01b0ac2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+2
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+12
-0
sql/ha_myisam.cc
sql/ha_myisam.cc
+1
-1
sql/handler.h
sql/handler.h
+1
-0
sql/share/errmsg.txt
sql/share/errmsg.txt
+2
-0
sql/sql_table.cc
sql/sql_table.cc
+6
-0
No files found.
mysql-test/r/innodb.result
View file @
83c8e2c9
...
@@ -3278,3 +3278,5 @@ SELECT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
...
@@ -3278,3 +3278,5 @@ SELECT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
a
a
1
1
drop table t2, t1;
drop table t2, t1;
create table t1 (g geometry not null, spatial gk(g)) engine=innodb;
ERROR HY000: The used table type doesn't support SPATIAL indexes
mysql-test/t/innodb.test
View file @
83c8e2c9
...
@@ -2190,3 +2190,15 @@ SELECT DISTINCT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
...
@@ -2190,3 +2190,15 @@ SELECT DISTINCT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
SELECT
p0
.
a
FROM
t2
p0
WHERE
BINARY
p0
.
b
=
'customer_over'
;
SELECT
p0
.
a
FROM
t2
p0
WHERE
BINARY
p0
.
b
=
'customer_over'
;
drop
table
t2
,
t1
;
drop
table
t2
,
t1
;
create
table
t2
(
a
date
,
key
(
a
))
engine
=
innodb
;
insert
into
t1
values
(
'2005-10-01'
);
insert
into
t2
values
(
'2005-10-01'
);
select
*
from
t1
,
t2
where
t2
.
a
between
t1
.
a
-
interval
2
day
and
t1
.
a
+
interval
2
day
;
drop
table
t1
,
t2
;
#
# Bug #15680 (SPATIAL key in innodb)
#
--
error
ER_TABLE_CANT_HANDLE_SPKEYS
create
table
t1
(
g
geometry
not
null
,
spatial
gk
(
g
))
engine
=
innodb
;
sql/ha_myisam.cc
View file @
83c8e2c9
...
@@ -165,7 +165,7 @@ ha_myisam::ha_myisam(TABLE *table_arg)
...
@@ -165,7 +165,7 @@ ha_myisam::ha_myisam(TABLE *table_arg)
int_table_flags
(
HA_NULL_IN_KEY
|
HA_CAN_FULLTEXT
|
HA_CAN_SQL_HANDLER
|
int_table_flags
(
HA_NULL_IN_KEY
|
HA_CAN_FULLTEXT
|
HA_CAN_SQL_HANDLER
|
HA_DUPP_POS
|
HA_CAN_INDEX_BLOBS
|
HA_AUTO_PART_KEY
|
HA_DUPP_POS
|
HA_CAN_INDEX_BLOBS
|
HA_AUTO_PART_KEY
|
HA_FILE_BASED
|
HA_CAN_GEOMETRY
|
HA_READ_RND_SAME
|
HA_FILE_BASED
|
HA_CAN_GEOMETRY
|
HA_READ_RND_SAME
|
HA_CAN_INSERT_DELAYED
|
HA_CAN_BIT_FIELD
),
HA_CAN_INSERT_DELAYED
|
HA_CAN_BIT_FIELD
|
HA_CAN_RTREEKEYS
),
can_enable_indexes
(
1
)
can_enable_indexes
(
1
)
{}
{}
...
...
sql/handler.h
View file @
83c8e2c9
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
*/
*/
#define HA_CAN_INSERT_DELAYED (1 << 14)
#define HA_CAN_INSERT_DELAYED (1 << 14)
#define HA_PRIMARY_KEY_IN_READ_INDEX (1 << 15)
#define HA_PRIMARY_KEY_IN_READ_INDEX (1 << 15)
#define HA_CAN_RTREEKEYS (1 << 17)
#define HA_NOT_DELETE_WITH_CACHE (1 << 18)
#define HA_NOT_DELETE_WITH_CACHE (1 << 18)
#define HA_NO_PREFIX_CHAR_KEYS (1 << 20)
#define HA_NO_PREFIX_CHAR_KEYS (1 << 20)
#define HA_CAN_FULLTEXT (1 << 21)
#define HA_CAN_FULLTEXT (1 << 21)
...
...
sql/share/errmsg.txt
View file @
83c8e2c9
...
@@ -5617,3 +5617,5 @@ ER_VIEW_RECURSIVE
...
@@ -5617,3 +5617,5 @@ ER_VIEW_RECURSIVE
eng "`%-.64s`.`%-.64s` contains view recursion"
eng "`%-.64s`.`%-.64s` contains view recursion"
ER_NON_GROUPING_FIELD_USED 42000
ER_NON_GROUPING_FIELD_USED 42000
eng "non-grouping field '%-.64s' is used in %-.64s clause"
eng "non-grouping field '%-.64s' is used in %-.64s clause"
ER_TABLE_CANT_HANDLE_SPKEYS
eng "The used table type doesn't support SPATIAL indexes"
sql/sql_table.cc
View file @
83c8e2c9
...
@@ -1159,6 +1159,12 @@ static int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
...
@@ -1159,6 +1159,12 @@ static int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
/* TODO: Add proper checks if handler supports key_type and algorithm */
/* TODO: Add proper checks if handler supports key_type and algorithm */
if
(
key_info
->
flags
&
HA_SPATIAL
)
if
(
key_info
->
flags
&
HA_SPATIAL
)
{
{
if
(
!
(
file
->
table_flags
()
&
HA_CAN_RTREEKEYS
))
{
my_message
(
ER_TABLE_CANT_HANDLE_SPKEYS
,
ER
(
ER_TABLE_CANT_HANDLE_SPKEYS
),
MYF
(
0
));
DBUG_RETURN
(
-
1
);
}
if
(
key_info
->
key_parts
!=
1
)
if
(
key_info
->
key_parts
!=
1
)
{
{
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"SPATIAL INDEX"
);
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"SPATIAL INDEX"
);
...
...
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