File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// bug #72969 reflects a bug with FreeTDS, not with pdo_dblib
4
4
// this function will version detect so the relevant tests can XFAILIF
5
+ // assume this bug isn't present if not using FreeTDS
6
+ // otherwise require FreeTDS>=1.1
5
7
function driver_supports_batch_statements_without_select ($ db ) {
6
8
$ version = $ db ->getAttribute (PDO ::DBLIB_ATTR_VERSION );
7
-
8
- // assume driver doesn't have this bug if not using FreeTDS
9
- if (!strstartswith ($ version , 'freetds ' )) {
10
- return true ;
11
- }
12
-
13
- // hasn't made it to numbered release yet
14
- if (!strstartswith ($ version , 'freetds v1.1.dev. ' )) {
15
- return false ;
16
- }
17
-
18
- // fc820490336c50d5c175d2a15327383256add4c9 was committed on the 5th
19
- return intval (substr ($ version , -8 )) >= 20161206 ;
9
+ return !strstartswith ($ version , 'freetds ' ) || !strstartswith ($ version , 'freetds v1.0 ' );
20
10
}
21
11
22
12
function strstartswith ($ haystack , $ needle ) {
You can’t perform that action at this time.
0 commit comments