incubator-stonehenge-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r772068 - /incubator/stonehenge/branches/m1/stocktrader/php/business_service/business_processor.php
Date Wed, 06 May 2009 06:14:22 GMT
Author: shankar
Date: Wed May  6 06:14:22 2009
New Revision: 772068

URL: http://svn.apache.org/viewvc?rev=772068&view=rev
Log:
removing MSSQL specific query. 

Modified:
    incubator/stonehenge/branches/m1/stocktrader/php/business_service/business_processor.php

Modified: incubator/stonehenge/branches/m1/stocktrader/php/business_service/business_processor.php
URL: http://svn.apache.org/viewvc/incubator/stonehenge/branches/m1/stocktrader/php/business_service/business_processor.php?rev=772068&r1=772067&r2=772068&view=diff
==============================================================================
--- incubator/stonehenge/branches/m1/stocktrader/php/business_service/business_processor.php
(original)
+++ incubator/stonehenge/branches/m1/stocktrader/php/business_service/business_processor.php
Wed May  6 06:14:22 2009
@@ -500,7 +500,7 @@
 	$response = null;
 	if($db)
 	{
-		$query = "SELECT top ".TOP_ORDERS." orderid, ordertype, orderstatus, opendate, 
+		$query = "SELECT orderid, ordertype, orderstatus, opendate, 
 				completiondate, quantity, price, orderfee, quote_symbol FROM 
 				orders WHERE orders.account_accountid = (SELECT account.accountid 
 				FROM account  WHERE account.profile_userid = 
@@ -538,6 +538,10 @@
 					symbol = $db->GetSQLValue($result, $rawNo, 8);
 				
 				$rawNo = $rawNo + 1;
+				if ($rawNo == TOP_ORDERS)
+				{
+					break;
+				}
 			}
 		}
 		$db->CloseDatabase();



Mime
View raw message