Skip to content

Commit

Permalink
Merge pull request #68580 from knz/backport21.1-68579
Browse files Browse the repository at this point in the history
release-21.1: sql: regression test for pg's INET format
  • Loading branch information
knz authored Aug 9, 2021
2 parents 03a4a6f + 168f707 commit f7dbae2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/inet
Original file line number Diff line number Diff line change
Expand Up @@ -877,3 +877,15 @@ query T
SELECT host(max('192.168.0.2/24'::INET)) FROM (VALUES (1)) AS t(x)
----
192.168.0.2

subtest regression_68578

# These address formats are valid in pg, even though they are not valid in Go.
# This test ensures that they remain recognized even when Go does not support them any more.
query TTT
SELECT '127.001.002.003'::INET, '127.001.002.003/016'::INET, '010.001.002.003'::INET
----
127.1.2.3 127.1.2.3/16 10.1.2.3

subtest end

0 comments on commit f7dbae2

Please sign in to comment.