document supported database versions in Dialects

there was incorrect information here for a couple of them
This commit is contained in:
Gavin 2022-12-19 16:31:41 +01:00 committed by Gavin King
parent 00edf48483
commit ad2d4604fb
9 changed files with 23 additions and 9 deletions

View File

@ -107,7 +107,7 @@ import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithM
import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithMillis;
/**
* A {@linkplain Dialect SQL dialect} for CockroachDB.
* A {@linkplain Dialect SQL dialect} for CockroachDB 21.1 and above.
*
* @author Gavin King
*/

View File

@ -96,7 +96,7 @@ import static org.hibernate.type.SqlTypes.VARBINARY;
import static org.hibernate.type.SqlTypes.VARCHAR;
/**
* A {@linkplain Dialect SQL dialect} for DB2.
* A {@linkplain Dialect SQL dialect} for DB2 for LUW (Linux, Unix, and Windows) version 10.5 and above.
*
* @author Gavin King
*/
@ -840,6 +840,9 @@ public class DB2Dialect extends Dialect {
return new DB2IdentityColumnSupport();
}
/**
* @return {@code true} because we can use {@code select ... from new table (insert .... )}
*/
@Override
public boolean supportsInsertReturning() {
return true;

View File

@ -29,7 +29,7 @@ import org.hibernate.sql.exec.spi.JdbcOperation;
import java.util.List;
/**
* An SQL dialect for DB2 for iSeries, previously known as "DB2/400".
* A SQL dialect for DB2 for iSeries version 7.1 and above, previously known as "DB2/400".
*
* @author Peter DeGregorio (pdegregorio)
* @author Christian Beikov

View File

@ -33,7 +33,11 @@ import java.util.List;
import static org.hibernate.type.SqlTypes.TIMESTAMP_WITH_TIMEZONE;
/**
* A SQL dialect for DB2 for z/OS, previously known as "Db2 UDB for z/OS" and as "Db2 UDB for z/OS and OS/390".
* A SQL dialect for DB2 for z/OS version 12.1 and above, previously known as :
* <ul>
* <li>"Db2 UDB for z/OS", and
* <li>"Db2 UDB for z/OS and OS/390".
* </ul>
*
* @author Christian Beikov
*/

View File

@ -92,7 +92,7 @@ import static org.hibernate.type.SqlTypes.VARBINARY;
import static org.hibernate.type.SqlTypes.VARCHAR;
/**
* A {@linkplain Dialect SQL dialect} for Apache Derby.
* A {@linkplain Dialect SQL dialect} for Apache Derby 10.14.2 and above.
*
* @author Simon Johnston
* @author Gavin King

View File

@ -786,9 +786,12 @@ public class H2Dialect extends Dialect {
: H2IdentityColumnSupport.INSTANCE;
}
/**
* @return {@code true} because we can use {@code select ... from final table (insert .... )}
*/
@Override
public boolean supportsInsertReturning() {
return getVersion().isSameOrAfter( 2 ); // actually 'final table'
return getVersion().isSameOrAfter( 2 );
}
@Override

View File

@ -40,7 +40,7 @@ import static org.hibernate.type.SqlTypes.UUID;
import static org.hibernate.type.SqlTypes.VARBINARY;
/**
* A {@linkplain Dialect SQL dialect} for MariaDB
* A {@linkplain Dialect SQL dialect} for MariaDB 10.3 and above.
*
* @author Vlad Mihalcea
* @author Gavin King
@ -235,6 +235,10 @@ public class MariaDBDialect extends MySQLDialect {
return false;
}
/**
* @return {@code true} for 10.5 and above because Maria supports
* {@code insert ... returning} even though MySQL does not
*/
@Override
public boolean supportsInsertReturning() {
return getVersion().isSameOrAfter( 10, 5 );

View File

@ -120,7 +120,7 @@ import static org.hibernate.type.SqlTypes.VARBINARY;
import static org.hibernate.type.SqlTypes.VARCHAR;
/**
* A {@linkplain Dialect SQL dialect} for Oracle 8i and above.
* A {@linkplain Dialect SQL dialect} for Oracle 11g Release 2 and above.
*
* @author Steve Ebersole
* @author Gavin King

View File

@ -126,7 +126,7 @@ import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithM
import static org.hibernate.type.descriptor.DateTimeUtils.appendAsTimestampWithMillis;
/**
* A {@linkplain Dialect SQL dialect} for PostgreSQL 8 and above.
* A {@linkplain Dialect SQL dialect} for PostgreSQL 10 and above.
*
* @author Gavin King
*/