Skip to content

Commit 2cda4a1

Browse files
committed
fix(MySQL): missing exported values for DEFAULT_GENERATED table fields, fixes #854
1 parent 76c8cd1 commit 2cda4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/libs/clients/MySQLClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ export class MySQLClient extends BaseClient {
663663
charset: field.CHARACTER_SET_NAME,
664664
collation: field.COLLATION_NAME,
665665
autoIncrement: field.EXTRA.includes('auto_increment'),
666-
generated: field.EXTRA.toLowerCase().includes('generated'),
666+
generated: ['VIRTUAL GENERATED', 'VIRTUAL STORED'].includes(field.EXTRA),
667667
onUpdate: field.EXTRA.toLowerCase().includes('on update')
668668
? field.EXTRA.substr(field.EXTRA.indexOf('on update') + 9, field.EXTRA.length).trim()
669669
: '',

0 commit comments

Comments
 (0)