fix escape for column default values

This commit is contained in:
johnnyfish
2024-08-25 18:11:21 +03:00
parent a803988a5e
commit da972738af
5 changed files with 5 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ export const mySQLQuery = `WITH fk_info as (
END,
',"ordinal_position":"', cols.ordinal_position,
'","nullable":', IF(cols.is_nullable = 'YES', 'true', 'false'),
',"default":"', IFNULL(cols.column_default, ''),
',"default":"', IFNULL(REPLACE(cols.column_default, '"', '\\"'), ''),
'","collation":"', IFNULL(cols.collation_name, ''), '"}'
)))))
), indexes as (