You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix MariaDB VIRTUAL [NOT NULL|NULL] error
Fixes#2691
query failed: ALTER TABLE `customer` CHANGE `fullName` `fullName` varchar(255) AS (CONCAT(`firstName`, ' ', `lastName`)) VIRTUAL NULL
error: Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL' at line 1
* slightly change code style to improve readability
Co-authored-by: Umed Khudoiberdiev <[email protected]>
// do nothing - MariaDB does not support NULL/NOT NULL expressions for VIRTUAL columns
1864
+
}else{
1865
+
if(!column.isNullable)
1866
+
c+=" NOT NULL";
1867
+
if(column.isNullable)
1868
+
c+=" NULL";
1869
+
}
1870
+
1864
1871
if(column.isPrimary&&!skipPrimary)
1865
1872
c+=" PRIMARY KEY";
1866
1873
if(column.isGenerated&&column.generationStrategy==="increment")// don't use skipPrimary here since updates can update already exist primary without auto inc.
0 commit comments