MDEV-28288 System versioning doesn't support correct work for
engine=connect and doesn't always give any warnings/errors Disabled system versioning for connect due to unsupported microseconds (MDEV-15967).
This commit is contained in:
parent
5b940bdcfc
commit
4e4c7dd4f5
@ -6467,6 +6467,15 @@ int ha_connect::create(const char *name, TABLE *table_arg,
|
|||||||
PGLOBAL g= xp->g;
|
PGLOBAL g= xp->g;
|
||||||
|
|
||||||
DBUG_ENTER("ha_connect::create");
|
DBUG_ENTER("ha_connect::create");
|
||||||
|
|
||||||
|
if (table_arg->versioned())
|
||||||
|
{
|
||||||
|
/* Due to microseconds not supported by CONNECT (MDEV-15967) system versioning
|
||||||
|
cannot work as expected (MDEV-15968, MDEV-28288) */
|
||||||
|
my_error(ER_VERS_NOT_SUPPORTED, MYF(0), "CONNECT storage engine");
|
||||||
|
DBUG_RETURN(HA_ERR_UNSUPPORTED);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This assignment fixes test failures if some
|
This assignment fixes test failures if some
|
||||||
"ALTER TABLE t1 ADD KEY(a)" query exits on ER_ACCESS_DENIED_ERROR
|
"ALTER TABLE t1 ADD KEY(a)" query exits on ER_ACCESS_DENIED_ERROR
|
||||||
|
@ -141,3 +141,12 @@ DROP TABLE t1;
|
|||||||
DROP TABLE t2;
|
DROP TABLE t2;
|
||||||
DROP TABLE t3;
|
DROP TABLE t3;
|
||||||
DROP TABLE t4;
|
DROP TABLE t4;
|
||||||
|
#
|
||||||
|
# MDEV-28288 System versioning doesn't support correct work for
|
||||||
|
# engine=connect and doesn't always give any warnings/errors
|
||||||
|
#
|
||||||
|
create table t2 (
|
||||||
|
x int,
|
||||||
|
y int
|
||||||
|
) engine=connect table_type=FIX file_name='test.txt' with system versioning;
|
||||||
|
ERROR HY000: System-versioned tables do not support CONNECT storage engine
|
||||||
|
@ -51,3 +51,14 @@ DROP TABLE t1;
|
|||||||
DROP TABLE t2;
|
DROP TABLE t2;
|
||||||
DROP TABLE t3;
|
DROP TABLE t3;
|
||||||
DROP TABLE t4;
|
DROP TABLE t4;
|
||||||
|
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-28288 System versioning doesn't support correct work for
|
||||||
|
--echo # engine=connect and doesn't always give any warnings/errors
|
||||||
|
--echo #
|
||||||
|
--error ER_VERS_NOT_SUPPORTED
|
||||||
|
create table t2 (
|
||||||
|
x int,
|
||||||
|
y int
|
||||||
|
) engine=connect table_type=FIX file_name='test.txt' with system versioning;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user