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,7 +542,7 @@ class MSSQLDatabase extends Database {
*/ */
public function indexList($table) { public function indexList($table) {
$indexes=DB::query("EXEC sp_helpindex '$table';"); $indexes=DB::query("EXEC sp_helpindex '$table';");
$prefix = null;
foreach($indexes as $index) { foreach($indexes as $index) {
@ -866,6 +866,7 @@ class MSSQLDatabase extends Database {
} }
$text=''; $text='';
$limitText='';
if($sqlQuery->limit) { if($sqlQuery->limit) {
$text='SELECT * FROM ( SELECT ROW_NUMBER() OVER ('; $text='SELECT * FROM ( SELECT ROW_NUMBER() OVER (';
$limitText=' ORDER BY ' . $sqlQuery->orderby . ') AS Number,'; $limitText=' ORDER BY ' . $sqlQuery->orderby . ') AS Number,';