Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
11.4.2
-
None
-
Linux
Description
suppose you map a table with a column: varchar(100) not null default ''; then the CONNECT engine will not show the default ''.
You only have to do a describe table or a show create table on the remote server to see the issue
The connect engine ahs more problems:
I create the source table at server (a) like
CREATE TABLE obviousfraud (
keyword varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (keyword)
)
there is no error
But when I create the same table a the remote server, I get
CREATE TABLE obviousfraud (
keyword varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (keyword)
)
ENGINE = CONNECT,
TABLE_TYPE = MYSQL,
DBNAME = 'api',
TABNAME = 'obviousfraud',
CHARACTER SET utf8mb4,
COLLATE utf8mb4_unicode_ci,
CONNECTION = 'mysql://XXXX',
ROW_FORMAT = DYNAMIC;
Error (24,1): Specified key was too long; max key length is 255 bytes