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
cb754eb5
Commit
cb754eb5
authored
Dec 17, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix after merge
parent
c298f035
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
13 deletions
+22
-13
.bzrignore
.bzrignore
+1
-0
include/m_string.h
include/m_string.h
+1
-0
libmysql/Makefile.shared
libmysql/Makefile.shared
+1
-1
libmysqld/Makefile.am
libmysqld/Makefile.am
+1
-1
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+7
-7
mysql-test/r/select.result
mysql-test/r/select.result
+2
-0
mysql-test/t/select.test
mysql-test/t/select.test
+6
-0
sql/sql_do.cc
sql/sql_do.cc
+1
-1
sql/sql_handler.cc
sql/sql_handler.cc
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+1
-2
No files found.
.bzrignore
View file @
cb754eb5
...
...
@@ -446,3 +446,4 @@ vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
sql-bench/test-transactions
libmysqld/sql_do.cc
include/m_string.h
View file @
cb754eb5
...
...
@@ -134,6 +134,7 @@ extern int bcmp(const char *s1,const char *s2,uint len);
#endif
#ifdef HAVE_purify
extern
int
my_bcmp
(
const
char
*
s1
,
const
char
*
s2
,
uint
len
);
#undef bcmp
#define bcmp(A,B,C) my_bcmp((A),(B),(C))
#endif
...
...
libmysql/Makefile.shared
View file @
cb754eb5
...
...
@@ -37,7 +37,7 @@ target_sources = libmysql.c net.c password.c manager.c \
mystringsobjects
=
strmov.lo strxmov.lo strnmov.lo strmake.lo strend.lo
\
strnlen.lo strfill.lo is_prefix.lo
\
int2str.lo str2int.lo strinstr.lo strcont.lo
\
strcend.lo
\
strcend.lo
bcmp.lo
\
bchange.lo bmove.lo bmove_upp.lo longlong2str.lo
\
strtoull.lo strtoll.lo llstr.lo
\
ctype.lo
$(LTCHARSET_OBJS)
...
...
libmysqld/Makefile.am
View file @
cb754eb5
...
...
@@ -50,7 +50,7 @@ sqlsources = convert.cc derror.cc field.cc field_conv.cc filesort.cc \
sql_analyse.cc sql_base.cc sql_cache.cc sql_class.cc
\
sql_crypt.cc sql_db.cc sql_delete.cc sql_insert.cc sql_lex.cc
\
sql_list.cc sql_manager.cc sql_map.cc sql_parse.cc
\
sql_rename.cc sql_repl.cc sql_select.cc sql_show.cc
\
sql_rename.cc sql_repl.cc sql_select.cc sql_
do.cc sql_
show.cc
\
sql_string.cc sql_table.cc sql_test.cc sql_udf.cc
\
sql_update.cc sql_yacc.cc table.cc thr_malloc.cc time.cc
\
unireg.cc uniques.cc stacktrace.c sql_union.cc hash_filo.cc
...
...
mysql-test/r/innodb.result
View file @
cb754eb5
...
...
@@ -140,13 +140,13 @@ id parent_id level
1015 102 2
explain select level from t1 where level=1;
table type possible_keys key key_len ref rows Extra
t1
index level level 1 NULL 39
where used; Using index
t1
ref level level 1 const 12
where used; Using index
explain select level,id from t1 where level=1;
table type possible_keys key key_len ref rows Extra
t1
index level level 1 NULL 39
where used; Using index
t1
ref level level 1 const 12
where used; Using index
explain select level,id,parent_id from t1 where level=1;
table type possible_keys key key_len ref rows Extra
t1
ALL level NULL NULL NULL 39
where used
t1
ref level level 1 const 12
where used
select level,id from t1 where level=1;
level id
1 1002
...
...
@@ -168,9 +168,9 @@ Table Op Msg_type Msg_text
test.t1 optimize error The handler for the table doesn't support check/repair
show keys from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Comment
t1 0 PRIMARY 1 id A
2
NULL NULL
t1 1 parent_id 1 parent_id A 2 NULL NULL
t1 1 level 1 level A
2
NULL NULL
t1 0 PRIMARY 1 id A
87
NULL NULL
t1 1 parent_id 1 parent_id A 2
1
NULL NULL
t1 1 level 1 level A
4
NULL NULL
drop table t1;
CREATE TABLE t1 (
gesuchnr int(11) DEFAULT '0' NOT NULL,
...
...
@@ -727,7 +727,7 @@ Table Op Msg_type Msg_text
test.t1 optimize error The handler for the table doesn't support check/repair
show keys from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Comment
t1 0 PRIMARY 1 a A
2
NULL NULL
t1 0 PRIMARY 1 a A
1
NULL NULL
drop table t1;
create table t1 (i int, j int ) TYPE=innodb;
insert into t1 values (1,2);
...
...
mysql-test/r/select.result
View file @
cb754eb5
...
...
@@ -3229,4 +3229,6 @@ Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_par
t2 0 PRIMARY 1 auto A 1199 NULL NULL
t2 0 fld1 1 fld1 A 1199 NULL NULL
t2 1 fld3 1 fld3 A NULL NULL NULL
DO 1;
DO benchmark(100,1+1),1,1;
drop table t4, t3,t2, t1;
mysql-test/t/select.test
View file @
cb754eb5
...
...
@@ -1712,6 +1712,12 @@ show full columns from t2 from test like 'f%';
show
full
columns
from
t2
from
test
like
's%'
;
show
keys
from
t2
;
#
# Test of DO
DO
1
;
DO
benchmark
(
100
,
1
+
1
),
1
,
1
;
#
# Drop the test tables
#
...
...
sql/sql_do.cc
View file @
cb754eb5
...
...
@@ -26,7 +26,7 @@ int mysql_do(THD *thd, List<Item> &values)
List_iterator
<
Item
>
li
(
values
);
Item
*
value
;
DBUG_ENTER
(
"mysql_do"
);
if
(
setup_fields
(
thd
,
0
,
values
,
0
,
0
))
if
(
setup_fields
(
thd
,
0
,
values
,
0
,
0
,
0
))
DBUG_RETURN
(
-
1
);
while
((
value
=
li
++
))
value
->
val_int
();
...
...
sql/sql_handler.cc
View file @
cb754eb5
...
...
@@ -86,7 +86,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
if
(
!
table
)
{
my_printf_error
(
ER_UNKNOWN_TABLE
,
ER
(
ER_UNKNOWN_TABLE
),
MYF
(
0
),
tables
->
name
,
"HANDLER"
);
tables
->
name
,
"HANDLER"
);
return
-
1
;
}
tables
->
table
=
table
;
...
...
sql/sql_lex.h
View file @
cb754eb5
...
...
@@ -56,8 +56,7 @@ enum enum_sql_command {
SQLCOM_SHOW_OPEN_TABLES
,
SQLCOM_LOAD_MASTER_DATA
,
SQLCOM_HA_OPEN
,
SQLCOM_HA_CLOSE
,
SQLCOM_HA_READ
,
SQLCOM_SHOW_SLAVE_HOSTS
,
SQLCOM_DELETE_MULTI
,
SQLCOM_SHOW_BINLOG_EVENTS
,
SQLCOM_SHOW_NEW_MASTER
,
SQLCOM_SHOW_OPEN_TABLES
,
SQLCOM_DO
,
SQLCOM_SHOW_BINLOG_EVENTS
,
SQLCOM_SHOW_NEW_MASTER
,
SQLCOM_DO
,
SQLCOM_END
};
...
...
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