File tree 1 file changed +3
-12
lines changed
spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 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.
@@ -33,19 +33,10 @@ public PostgresTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws S
33
33
super (databaseMetaData );
34
34
}
35
35
36
+
36
37
@ Override
37
38
public boolean isGetGeneratedKeysSimulated () {
38
- String version = getDatabaseVersion ();
39
- if (version != null && version .compareTo ("8.2.0" ) >= 0 ) {
40
- return true ;
41
- }
42
- else {
43
- if (logger .isWarnEnabled ()) {
44
- logger .warn ("PostgreSQL does not support getGeneratedKeys or INSERT ... RETURNING in version " +
45
- version );
46
- }
47
- return false ;
48
- }
39
+ return true ;
49
40
}
50
41
51
42
@ Override
You can’t perform that action at this time.
0 commit comments