File tree 2 files changed +11
-2
lines changed
spring-batch-infrastructure/src
main/java/org/springframework/batch/support
test/java/org/springframework/batch/support
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2023 the original author or authors.
2
+ * Copyright 2006-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -103,6 +103,9 @@ else if (databaseProductName.contains("AS") && (databaseProductVersion.startsWit
103
103
databaseProductName = JdbcUtils .commonDatabaseName (databaseProductName );
104
104
}
105
105
}
106
+ else if (StringUtils .hasText (databaseProductName ) && databaseProductName .startsWith ("EnterpriseDB" )) {
107
+ databaseProductName = "PostgreSQL" ;
108
+ }
106
109
else {
107
110
databaseProductName = JdbcUtils .commonDatabaseName (databaseProductName );
108
111
}
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2008-2022 the original author or authors.
2
+ * Copyright 2008-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -138,6 +138,12 @@ void testFromMetaDataForPostgres() throws Exception {
138
138
assertEquals (POSTGRES , DatabaseType .fromMetaData (ds ));
139
139
}
140
140
141
+ @ Test
142
+ void testFromMetaDataForEnterpriseDB () throws Exception {
143
+ DataSource ds = DatabaseTypeTestUtils .getMockDataSource ("EnterpriseDB" );
144
+ assertEquals (POSTGRES , DatabaseType .fromMetaData (ds ));
145
+ }
146
+
141
147
@ Test
142
148
void testFromMetaDataForSybase () throws Exception {
143
149
DataSource ds = DatabaseTypeTestUtils .getMockDataSource ("Adaptive Server Enterprise" );
You can’t perform that action at this time.
0 commit comments