From: <wel...@us...> - 2010-11-08 10:23:10
|
Revision: 6365 http://planeshift.svn.sourceforge.net/planeshift/?rev=6365&view=rev Author: weltall2 Date: 2010-11-08 10:23:03 +0000 (Mon, 08 Nov 2010) Log Message: ----------- some DBMS don't handle column!=1 they need column != 1 in order to work. Modified Paths: -------------- trunk/src/server/bulkobjects/pscharinventory.cpp Modified: trunk/src/server/bulkobjects/pscharinventory.cpp =================================================================== --- trunk/src/server/bulkobjects/pscharinventory.cpp 2010-11-07 22:37:04 UTC (rev 6364) +++ trunk/src/server/bulkobjects/pscharinventory.cpp 2010-11-08 10:23:03 UTC (rev 6365) @@ -273,7 +273,7 @@ doRestrictions = false; } - Result items(db->Select("SELECT * FROM item_instances WHERE char_id_owner=%u AND location_in_parent!=-1", use_id.Unbox())); + Result items(db->Select("SELECT * FROM item_instances WHERE char_id_owner=%u AND location_in_parent != -1", use_id.Unbox())); if ( items.IsValid() ) { for (size_t x = 0; x < items.Count(); x++ ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |