MINOR Fixed PHP notices in MSSQLDatabase

This commit is contained in:
Sean Harvey 2009-03-23 00:59:39 +00:00
parent b219062d4d
commit cf26621d57

View File

@ -542,10 +542,10 @@ class MSSQLDatabase extends Database {
*/
public function indexList($table) {
$indexes=DB::query("EXEC sp_helpindex '$table';");
$prefix = null;
foreach($indexes as $index) {
//Check for uniques:
if(strpos($index['index_description'], 'unique')!==false)
$prefix='unique ';
@ -866,6 +866,7 @@ class MSSQLDatabase extends Database {
}
$text='';
$limitText='';
if($sqlQuery->limit) {
$text='SELECT * FROM ( SELECT ROW_NUMBER() OVER (';
$limitText=' ORDER BY ' . $sqlQuery->orderby . ') AS Number,';