← Back to team overview

anewt-developers team mailing list archive

[Bug 503551] Re: API to find autorecords based on multiple column values

 

Finally got around to cleaning things up:

 1749 Wouter Bolsterlee	2010-02-16
      [autorecord] Implement ::db_find_{one,all}_by_columns()
      
      These methods takes an associative array of column names and
      values and returns the records that match all values, using
      AND in the WHERE clause.
      
      This is a generalization of the existing functionality
      offered by the ::db_find_{one,all}_by_column methods, but
      extended to support multiple columns instead of just one.
      The _by_column() methods now invoke their _by_columns()
      counterparts instead of duplicating the SQL building logic.
      
      Also extended the unit tests to test the new functionality.
      
      Fixes bug #503551.


** Changed in: anewt
       Status: In Progress => Fix Released

** Changed in: anewt
     Assignee: (unassigned) => Wouter Bolsterlee (uws) (uws)

-- 
API to find autorecords based on multiple column values
https://bugs.launchpad.net/bugs/503551
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.



References