fix(sql-server import) nullable should be boolean instead of string (#480)

This commit is contained in:
Jonathan Fishner
2024-12-11 16:39:40 +02:00
committed by GitHub
parent d6659795bc
commit 635fb53c9f

View File

@@ -76,9 +76,9 @@ cols AS (
ELSE
'null'
END +
', "nullable": "' +
', "nullable": ' +
CASE WHEN cols.IS_NULLABLE = 'YES' THEN 'true' ELSE 'false' END +
'", "default": "' +
', "default": "' +
COALESCE(REPLACE(CAST(cols.COLUMN_DEFAULT AS NVARCHAR(MAX)), '"', '\\"'), '') +
'", "collation": "' +
COALESCE(cols.COLLATION_NAME, '') +
@@ -308,9 +308,9 @@ cols AS (
ELSE
'null'
END +
', "nullable": "' +
', "nullable": ' +
CASE WHEN cols.IS_NULLABLE = 'YES' THEN 'true' ELSE 'false' END +
'", "default": "' +
', "default": "' +
COALESCE(REPLACE(CAST(cols.COLUMN_DEFAULT AS NVARCHAR(MAX)), '"', '"'), '') +
'", "collation": "' +
COALESCE(cols.COLLATION_NAME, '') +