Skip to content

Commit 92fceb6

Browse files
committed
Merge branch 'DBTOOLS-2061_fix_bug_with_arenadata_7_4_0_and_upper' into 'master'
DBTOOLS-2061 fixed bug with arenadata 7.4.0 and higher See merge request codekeeper/pgcodekeeper-core!268
2 parents 97ea619 + 9c44516 commit 92fceb6

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1313

1414
### Fixed
1515

16+
- Fixed a bug when working with Arenadata DB 7.4.0 and higher.
17+
1618
## [14.4.0] - 2026-05-05
1719

1820
### Changed

CHANGELOG.ru.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
### Исправлено
1515

16+
- Исправлена ошибка при работе с Arenadata DB 7.4.0 и выше.
17+
1618
## [14.4.0] - 2026-05-05
1719

1820
### Изменено

src/main/java/org/pgcodekeeper/core/database/pg/loader/PgJdbcLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
public class PgJdbcLoader extends AbstractJdbcLoader<PgDatabase> {
5353

5454
private static final String GREENPLUM = "Greenplum";
55+
private static final String GREENGAGE = "Greengage";
5556
private static final String EXTENSION_VERSION = "1.";
5657

5758
private static final String QUERY_CHECK_GREENPLUM = new QueryBuilder()
@@ -225,7 +226,8 @@ protected void queryCheckGreenplumDb(Statement statement) throws SQLException, I
225226
setCurrentOperation(Messages.JdbcLoaderBase_log_check_gp_db);
226227
try (ResultSet res = getRunner().runScript(statement, QUERY_CHECK_GREENPLUM)) {
227228
if (res.next()) {
228-
isGreenplumDb = res.getString(1).contains(GREENPLUM);
229+
String version = res.getString(1);
230+
isGreenplumDb = version.contains(GREENPLUM) || version.contains(GREENGAGE);
229231
}
230232
}
231233
debug(Messages.JdbcLoaderBase_log_get_result_gp, isGreenplumDb);

0 commit comments

Comments
 (0)