diff --git a/pkg/sql/information_schema.go b/pkg/sql/information_schema.go index bed7fe66620d..0a54ff084984 100644 --- a/pkg/sql/information_schema.go +++ b/pkg/sql/information_schema.go @@ -441,7 +441,7 @@ https://www.postgresql.org/docs/9.5/infoschema-columns.html`, colDefault := tree.DNull if column.HasDefault() { colExpr, err := schemaexpr.FormatExprForDisplay( - ctx, table, column.GetDefaultExpr(), &p.semaCtx, p.SessionData(), tree.FmtPgwireText, + ctx, table, column.GetDefaultExpr(), &p.semaCtx, p.SessionData(), tree.FmtParsableNumerics, ) if err != nil { return err diff --git a/pkg/sql/logictest/testdata/logic_test/enums b/pkg/sql/logictest/testdata/logic_test/enums index 81ef72fa9f48..ca94222704d5 100644 --- a/pkg/sql/logictest/testdata/logic_test/enums +++ b/pkg/sql/logictest/testdata/logic_test/enums @@ -536,8 +536,8 @@ WHERE ORDER BY column_name ---- -y hello -z hello IS OF (test.public.greeting, test.public.greeting) +y 'hello' +z 'hello' IS OF (test.public.greeting, test.public.greeting) # Test computed columns with enum values. statement ok diff --git a/pkg/sql/logictest/testdata/logic_test/information_schema b/pkg/sql/logictest/testdata/logic_test/information_schema index d1acf82d6264..79783fd52ad1 100644 --- a/pkg/sql/logictest/testdata/logic_test/information_schema +++ b/pkg/sql/logictest/testdata/logic_test/information_schema @@ -2410,7 +2410,7 @@ WHERE table_schema = 'public' AND table_name = 'with_defaults' ---- table_name column_name column_default with_defaults a 9 -with_defaults b default +with_defaults b 'default' with_defaults c NULL with_defaults d NULL with_defaults rowid unique_rowid() diff --git a/pkg/sql/logictest/testdata/logic_test/system b/pkg/sql/logictest/testdata/logic_test/system index 65934fffad89..913600b96361 100644 --- a/pkg/sql/logictest/testdata/logic_test/system +++ b/pkg/sql/logictest/testdata/logic_test/system @@ -250,10 +250,10 @@ descriptor BYTES true NULL · {primary} false query TTBTTTB SHOW COLUMNS FROM system.users ---- -username STRING false NULL · {primary,users_user_id_idx} false -hashedPassword BYTES true NULL · {primary} false -isRole BOOL false f · {primary} false -user_id OID false NULL · {primary,users_user_id_idx} false +username STRING false NULL · {primary,users_user_id_idx} false +hashedPassword BYTES true NULL · {primary} false +isRole BOOL false false · {primary} false +user_id OID false NULL · {primary,users_user_id_idx} false query TTBTTTB SHOW COLUMNS FROM system.zones