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
19801820
Commit
19801820
authored
May 03, 2006
by
holyfoot@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
merging
parents
4ba1a4b3
f66bcd25
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
64 additions
and
6 deletions
+64
-6
VC++Files/libmysqld/libmysqld.dsp
VC++Files/libmysqld/libmysqld.dsp
+4
-0
VC++Files/libmysqld/libmysqld_ia64.dsp
VC++Files/libmysqld/libmysqld_ia64.dsp
+4
-0
mysql-test/r/analyze.result
mysql-test/r/analyze.result
+8
-0
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+2
-0
mysql-test/r/sp_notembedded.result
mysql-test/r/sp_notembedded.result
+1
-0
mysql-test/t/analyze.test
mysql-test/t/analyze.test
+8
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+12
-0
mysql-test/t/sp_notembedded.test
mysql-test/t/sp_notembedded.test
+5
-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
+16
-5
No files found.
VC++Files/libmysqld/libmysqld.dsp
View file @
19801820
...
...
@@ -363,6 +363,10 @@ SOURCE=..\mysys\my_getopt.c
SOURCE=..\sql-common\my_time.c
# End Source File
# Begin Source File
SOURCE=..\sql-common\my_user.c
# End Source File
# Begin Source File
SOURCE=..\sql\net_serv.cpp
# End Source File
...
...
VC++Files/libmysqld/libmysqld_ia64.dsp
View file @
19801820
...
...
@@ -338,6 +338,10 @@ SOURCE="..\sql-common\my_time.c"
# End Source File
# Begin Source File
SOURCE="..\sql-common\my_user.c"
# End Source File
# Begin Source File
SOURCE=..\sql\net_serv.cpp
# End Source File
# Begin Source File
...
...
mysql-test/r/analyze.result
View file @
19801820
...
...
@@ -46,4 +46,12 @@ Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_
execute stmt1;
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
deallocate prepare stmt1;
create temporary table t1(a int, index(a));
insert into t1 values('1'),('2'),('3'),('4'),('5');
analyze table t1;
Table Op Msg_type Msg_text
test.t1 analyze status OK
show index from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
t1 1 a 1 a A 5 NULL NULL YES BTREE
drop table t1;
mysql-test/r/innodb.result
View file @
19801820
...
...
@@ -3455,3 +3455,5 @@ SELECT p0.a FROM t2 p0 WHERE BINARY p0.b = 'customer_over';
a
1
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/r/sp_notembedded.result
View file @
19801820
drop table if exists t1,t3;
drop procedure if exists bug4902|
create procedure bug4902()
begin
...
...
mysql-test/t/analyze.test
View file @
19801820
...
...
@@ -61,6 +61,14 @@ prepare stmt1 from "SELECT * FROM t1 PROCEDURE ANALYSE()";
execute
stmt1
;
execute
stmt1
;
deallocate
prepare
stmt1
;
#
# bug#15225 (ANALYZE temporary has no effect)
#
create
temporary
table
t1
(
a
int
,
index
(
a
));
insert
into
t1
values
(
'1'
),(
'2'
),(
'3'
),(
'4'
),(
'5'
);
analyze
table
t1
;
show
index
from
t1
;
drop
table
t1
;
# End of 4.1 tests
mysql-test/t/innodb.test
View file @
19801820
...
...
@@ -2494,3 +2494,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'
;
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
;
mysql-test/t/sp_notembedded.test
View file @
19801820
# Can't test with embedded server
--
source
include
/
not_embedded
.
inc
--
sleep
2
--
disable_warnings
drop
table
if
exists
t1
,
t3
;
--
enable_warnings
delimiter
|
;
#
...
...
@@ -261,3 +265,4 @@ drop view v1|
drop
table
t3
|
delimiter
;
|
drop
table
t3
;
sql/ha_myisam.cc
View file @
19801820
...
...
@@ -188,7 +188,7 @@ ha_myisam::ha_myisam(TABLE_SHARE *table_arg)
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_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
)
{}
...
...
sql/handler.h
View file @
19801820
...
...
@@ -84,6 +84,7 @@
access on the table based on a given record.
*/
#define HA_PRIMARY_KEY_ALLOW_RANDOM_ACCESS (1 << 16)
#define HA_CAN_RTREEKEYS (1 << 17)
#define HA_NOT_DELETE_WITH_CACHE (1 << 18)
#define HA_NO_PREFIX_CHAR_KEYS (1 << 20)
#define HA_CAN_FULLTEXT (1 << 21)
...
...
sql/share/errmsg.txt
View file @
19801820
...
...
@@ -5840,3 +5840,5 @@ ER_NULL_IN_VALUES_LESS_THAN
ER_WRONG_PARTITION_NAME
eng "Incorrect partition name"
swe "Felaktigt partitionsnamn"
ER_TABLE_CANT_HANDLE_SPKEYS
eng "The used table type doesn't support SPATIAL indexes"
sql/sql_table.cc
View file @
19801820
...
...
@@ -2548,6 +2548,12 @@ static int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
/* TODO: Add proper checks if handler supports key_type and algorithm */
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
)
{
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"SPATIAL INDEX"
);
...
...
@@ -4190,11 +4196,16 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
table
->
table
->
s
->
version
=
0
;
// Force close of table
else
if
(
open_for_modify
&&
!
table
->
table
->
s
->
log_table
)
{
pthread_mutex_lock
(
&
LOCK_open
);
remove_table_from_cache
(
thd
,
table
->
table
->
s
->
db
.
str
,
table
->
table
->
s
->
table_name
.
str
,
RTFC_NO_FLAG
);
pthread_mutex_unlock
(
&
LOCK_open
);
/* Something may be modified, that's why we have to invalidate cache */
if
(
table
->
table
->
tmp_table
)
table
->
table
->
file
->
info
(
HA_STATUS_CONST
);
else
{
pthread_mutex_lock
(
&
LOCK_open
);
remove_table_from_cache
(
thd
,
table
->
table
->
s
->
db
.
str
,
table
->
table
->
s
->
table_name
.
str
,
RTFC_NO_FLAG
);
pthread_mutex_unlock
(
&
LOCK_open
);
}
/* May be something modified consequently we have to invalidate cache */
query_cache_invalidate3
(
thd
,
table
->
table
,
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