default value test + fixed clickhouse default support

This commit is contained in:
Jan Prochazka
2024-10-29 15:52:36 +01:00
parent 4dcf47b81f
commit 7deeb78d69
2 changed files with 25 additions and 6 deletions

View File

@@ -4,7 +4,8 @@ select
tables.uuid as "objectId",
columns.name as "columnName",
columns.type as "dataType",
columns.comment as "columnComment"
columns.comment as "columnComment",
columns.default_expression as "defaultValue"
from system.columns
inner join system.tables on columns.table = tables.name and columns.database = tables.database
where columns.database='#DATABASE#' and tables.uuid =OBJECT_ID_CONDITION