← Back to team overview

phpdevshell team mailing list archive

[Bug 1023793] Re: PHPDS_query's asArray function not properly implemented

 

** Changed in: phpdevshell
    Milestone: 3.2.1-stable => 3.5

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/1023793

Title:
  PHPDS_query's asArray function not properly implemented

Status in Open Source PHP RAD Framework with UI.:
  Fix Committed

Bug description:
  The asArray function in the PHPDS_query class is not properly
  implemented. It is supposed to fetch a single field as a simple one
  dimensional numerical array, i.e. array([0] => "value a", [1] = "value
  b", ...). PHPDS_query itself never calls this function and the end
  developer also can't call it in the PHPDS_query derived classes since
  it will always return with an empty result. (The reason is that by the
  time the end developer calls the asArray function the result set has
  already been parsed by the invoke() function and so the result pointer
  is already passed the last row.)

  In order to make this function usefull we need to add an optional flag
  to the PHPDS_query class that will allow invoke() to make use of the
  asArray function and return the result as required.

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/1023793/+subscriptions


References