StatementCreatorUtils detects Microsoft SQL Server driver 4.0 as well
Issue: SPR-13772
(cherry picked from commit d2ad2c3)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2014 the original author or authors.
|
* Copyright 2002-2015 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.
|
||||||
@@ -282,7 +282,8 @@ public abstract class StatementCreatorUtils {
|
|||||||
}
|
}
|
||||||
String databaseProductName = dbmd.getDatabaseProductName();
|
String databaseProductName = dbmd.getDatabaseProductName();
|
||||||
if (databaseProductName.startsWith("Informix") ||
|
if (databaseProductName.startsWith("Informix") ||
|
||||||
jdbcDriverName.startsWith("Microsoft SQL Server")) {
|
(jdbcDriverName.startsWith("Microsoft") && jdbcDriverName.contains("SQL Server"))) {
|
||||||
|
// "Microsoft SQL Server JDBC Driver 3.0" versus "Microsoft JDBC Driver 4.0 for SQL Server"
|
||||||
useSetObject = true;
|
useSetObject = true;
|
||||||
}
|
}
|
||||||
else if (databaseProductName.startsWith("DB2") ||
|
else if (databaseProductName.startsWith("DB2") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user