Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Fixed PostgreSQL v13.x support for version 0.5.7 release (#167)
Browse files Browse the repository at this point in the history
* Added support for PostgreSQL v13.x by changing `CREATE OR REPLACE TRIGGER`
to `DROP TRIGGER` and `CREATE TRIGGER`.

* - Fixed bug in PostgreSQL v13.x support for `com.senzing.listener.communication.sql.PostgreSQLClient`
- Fixed bug in `com.senzing.listener.service.scheduling.PostgreSQLSchedulingService` prevnting the
  trigger from being dropped properly.

* Updated commons-configuration2 dependnecy to version 2.10.1
  • Loading branch information
barrycaceres authored Mar 21, 2024
1 parent 157e254 commit 3d46be1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
[markdownlint](https://dlaa.me/markdownlint/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.7] - 2024-03-21

### Changed in 0.5.7

- Fixed bug in PostgreSQL v13.x support for `com.senzing.listener.communication.sql.PostgreSQLClient`
- Fixed bug in `com.senzing.listener.service.scheduling.PostgreSQLSchedulingService` prevnting the
trigger from being dropped properly.
- Updated `commons-configuration2` dependency from version `2.9.0` to version `2.10.1`

## [0.5.6] - 2024-03-20

### Changed in 0.5.6
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ENV REFRESHED_AT=2024-03-18

LABEL Name="senzing/senzing-listener-builder" \
Maintainer="[email protected]" \
Version="0.5.6"
Version="0.5.7"

# Set environment variables.

Expand Down Expand Up @@ -39,7 +39,7 @@ ENV REFRESHED_AT=2024-03-18

LABEL Name="senzing/senzing-listener" \
Maintainer="[email protected]" \
Version="0.5.6"
Version="0.5.7"

HEALTHCHECK CMD ["/app/healthcheck.sh"]

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.senzing</groupId>
<artifactId>senzing-listener</artifactId>
<packaging>jar</packaging>
<version>0.5.6</version>
<version>0.5.7</version>
<name>Senzing Listener Framework</name>
<description>Framework for creating applications receiving messages from G2 through queue</description>
<url>http://github.com/senzing-garage/senzing-listener</url>
Expand Down Expand Up @@ -84,7 +84,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>
<version>2.9.0</version>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.rabbitmq</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void ensureSchema(Connection conn, boolean recreate)
+ "$$;";

String createTriggerSql =
"CREATE OR REPLACE TRIGGER sz_msg_queue_trigger "
"CREATE TRIGGER sz_msg_queue_trigger "
+ " BEFORE INSERT OR UPDATE "
+ " ON sz_message_queue "
+ " FOR EACH ROW "
Expand All @@ -106,6 +106,7 @@ public void ensureSchema(Connection conn, boolean recreate)
sqlList.add(createTableSql);
sqlList.add(createIndexSql);
sqlList.add(createTriggerFunctionSql);
sqlList.add(dropTriggerSql);
sqlList.add(createTriggerSql);

// execute the statements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected void ensureSchema(boolean recreate) throws SQLException {

String dropTriggerSql =
"DROP TRIGGER IF EXISTS sz_follow_up_tasks_trigger "
+ "ON sz_follow_up_timestamps;";
+ "ON sz_follow_up_tasks;";

List<String> sqlList = new ArrayList<>();

Expand Down

0 comments on commit 3d46be1

Please sign in to comment.