Skip to content

Commit

Permalink
sql: add test for builtin that belongs to information_schema
Browse files Browse the repository at this point in the history
This tests the change in 3f50d81

Release note: None
  • Loading branch information
rafiss committed Feb 8, 2023
1 parent 0a65a4e commit cba72da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/pg_catalog
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,16 @@ pb_to_json pb_to_json 4294967295 crdb_internal 3802 25 17
pb_to_json pb_to_json 4294967295 crdb_internal 3802 25 17 16
pb_to_json pb_to_json 4294967295 crdb_internal 3802 25 17 16 16

query TTOTOT colnames
SELECT proname, prosrc, pronamespace, nspname, prorettype, proargtypes
FROM pg_catalog.pg_proc p
JOIN pg_catalog.pg_namespace n ON p.pronamespace = n.oid
WHERE proname='_pg_char_max_length'
ORDER BY p.oid
----
proname prosrc pronamespace nspname prorettype proargtypes
_pg_char_max_length _pg_char_max_length 4294967213 information_schema 20 26 23

query TOIOTTB colnames
SELECT proname, provariadic, pronargs, prorettype, proargtypes, proargmodes, proisstrict
FROM pg_catalog.pg_proc
Expand Down

0 comments on commit cba72da

Please sign in to comment.