Merge branch '1.4.x' into 1.5.x
This commit is contained in:
commit
47fd5f4fac
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2014 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -2259,7 +2259,7 @@ your application defines, if any.
|
||||||
NOTE: By default, batch applications require a `DataSource` to store job details. If you
|
NOTE: By default, batch applications require a `DataSource` to store job details. If you
|
||||||
want to deviate from that, you'll need to implement `BatchConfigurer`, see
|
want to deviate from that, you'll need to implement `BatchConfigurer`, see
|
||||||
{spring-batch-javadoc}/core/configuration/annotation/EnableBatchProcessing.html[The
|
{spring-batch-javadoc}/core/configuration/annotation/EnableBatchProcessing.html[The
|
||||||
Javadoc of @EnableBatchProcessing] for more details.
|
Javadoc of `@EnableBatchProcessing`] for more details.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,16 @@ public enum DatabaseDriver {
|
||||||
* SQL Server.
|
* SQL Server.
|
||||||
*/
|
*/
|
||||||
SQLSERVER("Microsoft SQL Server", "com.microsoft.sqlserver.jdbc.SQLServerDriver",
|
SQLSERVER("Microsoft SQL Server", "com.microsoft.sqlserver.jdbc.SQLServerDriver",
|
||||||
"com.microsoft.sqlserver.jdbc.SQLServerXADataSource", "SELECT 1"),
|
"com.microsoft.sqlserver.jdbc.SQLServerXADataSource", "SELECT 1") {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean matchProductName(String productName) {
|
||||||
|
return super.matchProductName(productName)
|
||||||
|
|| "SQL SERVER".equalsIgnoreCase(productName);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Firebird.
|
* Firebird.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2012-2016 the original author or authors.
|
* Copyright 2012-2017 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.
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ public class DatabaseDriverTests {
|
||||||
.isEqualTo(DatabaseDriver.POSTGRESQL);
|
.isEqualTo(DatabaseDriver.POSTGRESQL);
|
||||||
assertThat(DatabaseDriver.fromProductName("Microsoft SQL Server"))
|
assertThat(DatabaseDriver.fromProductName("Microsoft SQL Server"))
|
||||||
.isEqualTo(DatabaseDriver.SQLSERVER);
|
.isEqualTo(DatabaseDriver.SQLSERVER);
|
||||||
|
assertThat(DatabaseDriver.fromProductName("SQL SERVER"))
|
||||||
|
.isEqualTo(DatabaseDriver.SQLSERVER);
|
||||||
assertThat(DatabaseDriver.fromProductName("DB2")).isEqualTo(DatabaseDriver.DB2);
|
assertThat(DatabaseDriver.fromProductName("DB2")).isEqualTo(DatabaseDriver.DB2);
|
||||||
assertThat(DatabaseDriver.fromProductName("Firebird 2.5.WI"))
|
assertThat(DatabaseDriver.fromProductName("Firebird 2.5.WI"))
|
||||||
.isEqualTo(DatabaseDriver.FIREBIRD);
|
.isEqualTo(DatabaseDriver.FIREBIRD);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue