|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -33,20 +33,11 @@ public class PostgresTableMetaDataProvider extends GenericTableMetaDataProvider |
|
|
|
super(databaseMetaData); |
|
|
|
super(databaseMetaData); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean isGetGeneratedKeysSimulated() { |
|
|
|
public boolean isGetGeneratedKeysSimulated() { |
|
|
|
String version = getDatabaseVersion(); |
|
|
|
|
|
|
|
if (version != null && version.compareTo("8.2.0") >= 0) { |
|
|
|
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
|
|
|
|
if (logger.isWarnEnabled()) { |
|
|
|
|
|
|
|
logger.warn("PostgreSQL does not support getGeneratedKeys or INSERT ... RETURNING in version " + |
|
|
|
|
|
|
|
version); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName) { |
|
|
|
public String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName) { |
|
|
|
|