Changeset 3227 in subversion for trunk/roundcubemail/program/lib/MDB2/Driver/Manager/mssql.php
- Timestamp:
- Jan 26, 2010 8:45:16 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/lib/MDB2/Driver/Manager/mssql.php
r1352 r3227 45 45 // +----------------------------------------------------------------------+ 46 46 // 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 $ 48 48 // 49 49 … … 716 716 } 717 717 718 $table = $db->quote Identifier($table, true);718 $table = $db->quote($table, 'text'); 719 719 $columns = $db->queryCol("SELECT c.name 720 720 FROM syscolumns c 721 721 LEFT JOIN sysobjects o ON c.id = o.id 722 WHERE o.name = '$table'");722 WHERE o.name = $table"); 723 723 if (PEAR::isError($columns)) { 724 724 return $columns; … … 894 894 WHERE xtype = 'TR' 895 895 AND OBJECTPROPERTY(o.id, 'IsMSShipped') = 0"; 896 if ( !is_null($table)) {896 if (null !== $table) { 897 897 $query .= " AND object_name(parent_obj) = $table"; 898 898 } … … 995 995 return $db; 996 996 } 997 $table = $db->quote Identifier($table, true);997 $table = $db->quote($table, 'text'); 998 998 999 999 $query = "SELECT c.constraint_name 1000 1000 FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS c 1001 1001 WHERE c.constraint_catalog = DB_NAME() 1002 AND c.table_name = '$table'";1002 AND c.table_name = $table"; 1003 1003 $constraints = $db->queryCol($query); 1004 1004 if (PEAR::isError($constraints)) {
Note: See TracChangeset
for help on using the changeset viewer.
