alecpl
2008-12-03 4189ccf44a79d14c8faecefa8f87f8dde5dd492f
- comment out setcharset() use in sqlite and mssql drivers (http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/mssql.php?r1=1.177&r2=1.178)


2 files modified
4 ■■■■ changed files
program/lib/MDB2/Driver/mssql.php 2 ●●●●● patch | view | raw | blame | history
program/lib/MDB2/Driver/sqlite.php 2 ●●●●● patch | view | raw | blame | history
program/lib/MDB2/Driver/mssql.php
@@ -349,12 +349,14 @@
        @mssql_query('SET ANSI_NULL_DFLT_ON ON', $connection);
/*
        if (!empty($this->dsn['charset'])) {
            $result = $this->setCharset($this->dsn['charset'], $connection);
            if (PEAR::isError($result)) {
                return $result;
            }
        }
*/
       if ((bool)ini_get('mssql.datetimeconvert')) {
           @ini_set('mssql.datetimeconvert', '0');
program/lib/MDB2/Driver/sqlite.php
@@ -412,12 +412,14 @@
                'unable to establish a connection', __FUNCTION__);
            }
/*
            if (!empty($this->dsn['charset'])) {
                $result = $this->setCharset($this->dsn['charset'], $connection);
                if (PEAR::isError($result)) {
                    return $result;
                }
            }
*/
            $this->connection = $connection;
            $this->connected_dsn = $this->dsn;