Skip to content

Commit

Permalink
pg e2e: replace bit with bytea
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jun 24, 2024
1 parent 673c25e commit e82e66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/e2e/postgres/peer_flow_pg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (s PeerFlowE2ETestSuitePG) Test_Types_PG() {
dstTableName := s.attachSchemaSuffix("test_types_pg_dst")

_, err := s.Conn().Exec(context.Background(), fmt.Sprintf(`
CREATE TABLE IF NOT EXISTS %s (id serial PRIMARY KEY,c1 BIGINT,c2 BIT,c4 BOOLEAN,
CREATE TABLE IF NOT EXISTS %s (id serial PRIMARY KEY,c1 BIGINT,c2 BYTEA,c4 BOOLEAN,
c7 CHARACTER,c8 varchar,c9 CIDR,c11 DATE,c12 FLOAT,c13 DOUBLE PRECISION,
c14 INET,c15 INTEGER,c21 MACADDR,
c29 SMALLINT,c32 TEXT,
Expand All @@ -122,7 +122,7 @@ func (s PeerFlowE2ETestSuitePG) Test_Types_PG() {
env := e2e.ExecutePeerflow(tc, peerflow.CDCFlowWorkflow, flowConnConfig, nil)
e2e.SetupCDCFlowStatusQuery(s.t, env, flowConnConfig)
_, err = s.Conn().Exec(context.Background(), fmt.Sprintf(`
INSERT INTO %s SELECT 2,2,b'1',
INSERT INTO %s SELECT 2,2,'\xdeadbeef',
true,'s','test','1.1.10.2'::cidr,
CURRENT_DATE,1.23,1.234,'192.168.1.5'::inet,1,
'08:00:2b:01:02:03'::macaddr,
Expand Down

0 comments on commit e82e66e

Please sign in to comment.