mirror of
https://github.com/php/php-src.git
synced 2026-04-01 21:22:13 +02:00
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: - Fixed build on FreeTDS 0.82
This commit is contained in:
@@ -274,9 +274,13 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
||||
,{"5.0",DBVERSION_70} /* FIXME: This does not work with Sybase, but environ will */
|
||||
,{"6.0",DBVERSION_70}
|
||||
,{"7.0",DBVERSION_70}
|
||||
#ifdef DBVERSION_71
|
||||
,{"7.1",DBVERSION_71}
|
||||
#endif
|
||||
#ifdef DBVERSION_72
|
||||
,{"7.2",DBVERSION_72}
|
||||
,{"8.0",DBVERSION_72}
|
||||
#endif
|
||||
,{"10.0",DBVERSION_100}
|
||||
,{"auto",0} /* Only works with FreeTDS. Other drivers will bork */
|
||||
|
||||
@@ -361,9 +365,11 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
||||
/* allow double quoted indentifiers */
|
||||
DBSETOPT(H->link, DBQUOTEDIDENT, "1");
|
||||
|
||||
#ifdef DBSETLDBNAME
|
||||
if (vars[3].optval) {
|
||||
DBSETLDBNAME(H->login, vars[3].optval);
|
||||
}
|
||||
#endif
|
||||
|
||||
ret = 1;
|
||||
dbh->max_escaped_char_length = 2;
|
||||
|
||||
Reference in New Issue
Block a user