mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-05 06:23:17 +00:00
fix escape for column default values
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user