Skip to content

Commit

Permalink
fix(pg-cdc): fix postgres.publication_exist, found in issues#18628 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang authored Sep 24, 2024
1 parent 27458d8 commit e745820
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ public static void createPostgresPublicationIfNeeded(
ValidatorUtils.getSql("postgres.publication_exist"))) {
stmt.setString(1, pubName);
var res = stmt.executeQuery();
// Note: the value returned here is `pubviaroot`, If there's more than one row, the
// publication exists
if (res.next()) {
isPubExist = res.getBoolean(1);
isPubExist = true;
}
}

Expand Down

0 comments on commit e745820

Please sign in to comment.