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
902b06ec
Commit
902b06ec
authored
Oct 13, 2005
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-4.1
into moonbone.local:/work/13535-bug-4.1-mysql
parents
ab05c75e
5a10244d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
mysql-test/r/select.result
mysql-test/r/select.result
+10
-0
mysql-test/t/select.test
mysql-test/t/select.test
+10
-0
sql/sql_show.cc
sql/sql_show.cc
+9
-3
No files found.
mysql-test/r/select.result
View file @
902b06ec
...
@@ -2633,3 +2633,13 @@ select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
...
@@ -2633,3 +2633,13 @@ select * from t1,t2 where f1=f3 and (f1,f2) <=> (2,null);
f1 f2 f3
f1 f2 f3
2 NULL 2
2 NULL 2
drop table t1,t2;
drop table t1,t2;
create table t1 (f1 int not null auto_increment primary key, f2 varchar(10));
create table t11 like t1;
insert into t1 values(1,""),(2,"");
show table status like 't1%';
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
t1 MyISAM 9 Dynamic 2 20 X X X X X X X X latin1_swedish_ci NULL
t11 MyISAM 9 Dynamic 0 0 X X X X X X X X latin1_swedish_ci NULL
select 123 as a from t1 where f1 is null;
a
drop table t1,t11;
mysql-test/t/select.test
View file @
902b06ec
...
@@ -2178,4 +2178,14 @@ select * from t1,t2 where f1=f3 and (f1,f2) = (2,null);
...
@@ -2178,4 +2178,14 @@ select * from t1,t2 where f1=f3 and (f1,f2) = (2,null);
select
*
from
t1
,
t2
where
f1
=
f3
and
(
f1
,
f2
)
<=>
(
2
,
null
);
select
*
from
t1
,
t2
where
f1
=
f3
and
(
f1
,
f2
)
<=>
(
2
,
null
);
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug #13535
#
create
table
t1
(
f1
int
not
null
auto_increment
primary
key
,
f2
varchar
(
10
));
create
table
t11
like
t1
;
insert
into
t1
values
(
1
,
""
),(
2
,
""
);
--
replace_column
7
X
8
X
9
X
10
X
11
X
12
X
13
X
14
X
show
table
status
like
't1%'
;
select
123
as
a
from
t1
where
f1
is
null
;
drop
table
t1
,
t11
;
# End of 4.1 tests
# End of 4.1 tests
sql/sql_show.cc
View file @
902b06ec
...
@@ -462,6 +462,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
...
@@ -462,6 +462,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
TABLE
*
table
;
TABLE
*
table
;
Protocol
*
protocol
=
thd
->
protocol
;
Protocol
*
protocol
=
thd
->
protocol
;
TIME
time
;
TIME
time
;
int
res
=
0
;
DBUG_ENTER
(
"mysqld_extend_show_tables"
);
DBUG_ENTER
(
"mysqld_extend_show_tables"
);
(
void
)
sprintf
(
path
,
"%s/%s"
,
mysql_data_home
,
db
);
(
void
)
sprintf
(
path
,
"%s/%s"
,
mysql_data_home
,
db
);
...
@@ -632,10 +633,15 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
...
@@ -632,10 +633,15 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
close_thread_tables
(
thd
,
0
);
close_thread_tables
(
thd
,
0
);
}
}
if
(
protocol
->
write
())
if
(
protocol
->
write
())
DBUG_RETURN
(
-
1
);
{
res
=
-
1
;
break
;
}
}
}
send_eof
(
thd
);
thd
->
insert_id
(
0
);
DBUG_RETURN
(
0
);
if
(
!
res
)
send_eof
(
thd
);
DBUG_RETURN
(
res
);
}
}
...
...
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