Editing Talk:WikiDB/Bugs

From TestWiki
Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
== Error in Normalise ==
+
I noticed a bug:<br>
 +
If the ''criteria'' attribute results in zero rows being returned from ''PerformQuery'', the call to ''NormaliseData'' is resulting in 1 row for each column in the table. After a bit of investigation, it turns out that Normaise is creating an empty array, but with the column names as tags inside the array, causing the loop to loop through the tags, rather than the rows (as would be expected).  This is pretty easily fixed.  I placed the following at the beginning of ''NormaliseData'', and it fixed the issue for me:
  
Moved to [[WikiDB/Bugs#Error in Normalise]].
+
<pre>
 +
if(!is_array($Data) || count($Data) == 0)
 +
{
 +
    return $FormattedData;
 +
}
 +
</pre>
 +
 
 +
-[[User:Jacob|Jacob]] 23:22, 8 April 2007 (BST)
 +
 
 +
: Moved to [[WikiDB/Bugs]]. Check there for resolution. --[[User:HappyDog|HappyDog]] 00:59, 13 July 2007 (BST)
  
 
== Error message while trying to create an SMW Property ==
 
== Error message while trying to create an SMW Property ==
  
 
Moved to [[WikiDB/Bugs#Error message while trying to create an SMW Property]].
 
Moved to [[WikiDB/Bugs#Error message while trying to create an SMW Property]].

Please note that all contributions to TestWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see TestWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)