Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.4
-
Windows 10 64bit
Description
I'm evaluating the possibility of migrating and existing SQL Anywhere database to MariaDB. While trying to port the existing tables, I've come across a scenario which crashes the mysqld server and renders the database useless. I can restart the server but when I attempt to do anything with the database, it crashes again (error log attached).
Here is SQL that that will reproduce this problem:
CREATE TABLE column_code |
( column_name varchar(50) |
, code char(2) |
, description varchar(255) |
, primary key (column_name, code asc) |
);
|
CREATE TABLE sample_table |
( id integer NOT NULL AUTO_INCREMENT PRIMARY KEY |
, value1 integer |
, value2 char(1) |
, some_code char(2) NOT NULL CHECK(@column in (select code from column_code where column_name = 'sample_table.some_code')) |
);
|
I'm not defending the way this was implemented, but it is what it is. I haven't found any documentation stating this shouldn't work. Please let me know if that's the case.
Thanks!
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
I'm evaluating the possibility of migrating and existing SQL Anywhere database to MariaDB. While trying to port the existing tables, I've come across a scenario which crashes the mysqld server and renders the database useless. I can restart the server but when I attempt to do anything with the database, it crashes again (error log attached).
Here is SQL that that will reproduce this problem: {code:sql} CREATE TABLE column_code ( column_name varchar(50) , code char(2) , description varchar(255) , primary key (column_name, code asc) ); CREATE TABLE sample_table ( id integer NOT NULL AUTO_INCREMENT PRIMARY KEY , value1 integer , value2 char(1) , some_code char(2) NOT NULL CHECK(@column in (select code from column_code where column_name = 'sample_table.some_code')) ); {code} I'm not defending the way this was implemented, but it is what it is. I haven't found any documentation stating this shouldn't work. Please let me know if that's the case. |
I'm evaluating the possibility of migrating and existing SQL Anywhere database to MariaDB. While trying to port the existing tables, I've come across a scenario which crashes the mysqld server and renders the database useless. I can restart the server but when I attempt to do anything with the database, it crashes again (error log attached).
Here is SQL that that will reproduce this problem: {code:sql} CREATE TABLE column_code ( column_name varchar(50) , code char(2) , description varchar(255) , primary key (column_name, code asc) ); CREATE TABLE sample_table ( id integer NOT NULL AUTO_INCREMENT PRIMARY KEY , value1 integer , value2 char(1) , some_code char(2) NOT NULL CHECK(@column in (select code from column_code where column_name = 'sample_table.some_code')) ); {code} I'm not defending the way this was implemented, but it is what it is. I haven't found any documentation stating this shouldn't work. Please let me know if that's the case. Thanks! |
Assignee | Sergei Golubchik [ serg ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 10.2 [ 14601 ] |
Component/s | Parser [ 10201 ] | |
Fix Version/s | 10.2.5 [ 22117 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 80213 ] | MariaDB v4 [ 151903 ] |
Here's the results of --print-defaults, as recommend by the bug reporting guidelines.
c:\Program Files\MariaDB 10.2\bin>mysqld --print-defaults
mysqld would have been started with the following arguments:
--datadir=C:/Program Files/MariaDB 10.2/data --port=3333 --sql_mode=STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION --default_storage_engine=innodb --innodb_buffer_pool_size=3070M --innodb_log_file_size=50M --feedback=ON