Ignore:
Timestamp:
Jan 26, 2010 8:45:16 AM (3 years ago)
Author:
alec
Message:
  • Add support for MDB2's 'sqlsrv' driver (#1486395)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/MDB2/Driver/Manager/mssql.php

    r1352 r3227  
    4545// +----------------------------------------------------------------------+ 
    4646// 
    47 // $Id: mssql.php,v 1.109 2008/03/05 12:55:57 afz Exp $ 
     47// $Id: mssql.php 292715 2009-12-28 14:06:34Z quipo $ 
    4848// 
    4949 
     
    716716        } 
    717717 
    718         $table = $db->quoteIdentifier($table, true); 
     718        $table = $db->quote($table, 'text'); 
    719719        $columns = $db->queryCol("SELECT c.name 
    720720                                    FROM syscolumns c 
    721721                               LEFT JOIN sysobjects o ON c.id = o.id 
    722                                    WHERE o.name = '$table'"); 
     722                                   WHERE o.name = $table"); 
    723723        if (PEAR::isError($columns)) { 
    724724            return $columns; 
     
    894894                   WHERE xtype = 'TR' 
    895895                     AND OBJECTPROPERTY(o.id, 'IsMSShipped') = 0"; 
    896         if (!is_null($table)) { 
     896        if (null !== $table) { 
    897897            $query .= " AND object_name(parent_obj) = $table"; 
    898898        } 
     
    995995            return $db; 
    996996        } 
    997         $table = $db->quoteIdentifier($table, true); 
     997        $table = $db->quote($table, 'text'); 
    998998 
    999999        $query = "SELECT c.constraint_name 
    10001000                    FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS c 
    10011001                   WHERE c.constraint_catalog = DB_NAME() 
    1002                      AND c.table_name = '$table'"; 
     1002                     AND c.table_name = $table"; 
    10031003        $constraints = $db->queryCol($query); 
    10041004        if (PEAR::isError($constraints)) { 
Note: See TracChangeset for help on using the changeset viewer.