https://bugzilla.wikimedia.org/show_bug.cgi?id=44027

       Web browser: ---
            Bug ID: 44027
           Summary: array_diff_assoc only compares strings
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Created attachment 11633
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=11633&action=edit
Replace array_diff_assoc

The array_diff_assoc in SMWSQLStore3Writers::preparePropertyTableUpdates is not
going to work, because it does not work recursively. Instead it just uses
string representations of the top-level elements. Which are all "Array" or some
such for an array of arrays.

The attached patch should fix this. It might be faster though instead of having
a loop in a loop in PHP to simply delete all old values from the DB and add all
new values, i.e. delete and re-insert values even if they do not change.

(Sorry, I can not push from here. SSH port is blocked. Could somebody apply the
patch?)

Semantic MediaWiki (Version 1.9 alpha)     (0e1afb0)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to