Skip to content

Commit a1782b4

Browse files
committed
MDEV-9739 Assertion `m_status == DA_ERROR || m_status == DA_OK' failed in Diagnostics_area::message() ; connect.xml* tests fail in buildbot
1 parent d70697b commit a1782b4

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

sql/sql_show.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5063,7 +5063,10 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
50635063
HA_STATUS_TIME |
50645064
HA_STATUS_VARIABLE_EXTRA |
50655065
HA_STATUS_AUTO)) != 0)
5066+
{
5067+
file->print_error(info_error, MYF(0));
50665068
goto err;
5069+
}
50675070

50685071
enum row_type row_type = file->get_row_type();
50695072
switch (row_type) {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Warnings:
2+
Warning 1105 No file name. Table will use t1.xml
3+
create table t1 (i int) engine=Connect table_type=XML;
4+
Warnings:
5+
Warning 1105 No file name. Table will use t1.xml
6+
select * from information_schema.tables where create_options like '%table_type=XML%';
7+
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
8+
Warnings:
9+
Warning 1286 Unknown storage engine 'InnoDB'
10+
Warning 1286 Unknown storage engine 'InnoDB'
11+
Warning 1296 Got error 174 'File t1.xml not found' from CONNECT
12+
drop table t1;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# MDEV-9739 Assertion `m_status == DA_ERROR || m_status == DA_OK' failed in Diagnostics_area::message() ; connect.xml* tests fail in buildbot
3+
#
4+
5+
--source have_libxml2.inc
6+
7+
create table t1 (i int) engine=Connect table_type=XML;
8+
select * from information_schema.tables where create_options like '%table_type=XML%';
9+
drop table t1;

0 commit comments

Comments
 (0)