Error copy table

dan's profile image dan posted 6 months ago in General Permalink

Hi, i tried to make a copy of the table but I got this error. See attachment. With Windows, the copy works. It doesn't work with Linux.

Linux version HeidiSql 12.11.1.167 Win versione HeidiSql 12.10.0.7024

Thanks

1 attachment(s):
  • error_copy_table
ansgar's profile image ansgar posted 6 months ago Permalink

You need to provide more details when reporting issues.

Please post

  • a screenshot of the copy-table dialog,
  • the CREATE code for the original table
  • and the MariaDB version.
dan's profile image dan posted 6 months ago Permalink

Hi, i'll take some screenshots for you so you can see the little flaws.

MariaDB Ver: 10.11.11

I tried to create a table in MariaDB 11.4 and the problem is the same.

Thanks

1 attachment(s):
  • screen_mix
ansgar's profile image ansgar posted 6 months ago Permalink

Please the CREATE code in text. Just run "SHOW CREATE TABLE mytable" and copy/paste the result here.

dan's profile image dan posted 6 months ago Permalink

Creating a table works, but I used the wrong COLLATE type. If I try to add a column, I get the error you see.

1 attachment(s):
  • screen_01
dan's profile image dan posted 6 months ago Permalink

When i copy a table i get this error

1 attachment(s):
  • screen_02
ansgar's profile image ansgar posted 6 months ago Permalink

Please run SHOW CREATE TABLE test; in a query tab and copy the result here.

dan's profile image dan posted 6 months ago Permalink

I have this result

1 attachment(s):
  • screen_02
ansgar's profile image ansgar posted 6 months ago Permalink

Where's the problem with text? Please right-click the field with "CREATE TABLE..." and click copy, and paste here.

dan's profile image dan posted 6 months ago Permalink

No problem

CREATE TABLE `test` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
ansgar's profile image ansgar posted 6 months ago Permalink

I can confirm the issue in the Linux version, and already fixed it for the next release.

I also created issue #2222 with a description of the problem.

dan's profile image dan posted 6 months ago Permalink

Ok! I opened a fix for the column list when writing a query.

Thanks

Please login to leave a reply, or register at first.