Menu

Bug in putAttributes?

Help
2009-07-22
2013-04-29
  • David L Jung

    David L Jung - 2009-07-22

    When I make the call:
          $sdb->putAttributes('mydomain', $item_name,
                                          array('v1'=> array('value' => 'myv1', 'replace' => false) );

    I see the error:

    SimpleDB::putAttributes(): InvalidParameterValue: Value (1) for parameter Replace is invalid. The Replace flag should be either true or false in includes/sdb.php on line 636

    When I edited the class to replace the 4 instances of the line:
      $rest->setParameter('Item.'.$ii.'.Attribute.'.$i.'.Replace', $v['replace']);

    with:
      $rest->setParameter('Item.'.$ii.'.Attribute.'.$i.'.Replace', $v['replace']?'true':'false');

    it seems to behave correctly.

    Thanks for sharing.
    Cheers.

     
    • Dan Myers

      Dan Myers - 2009-07-22

      Thanks David.  I'll make the change in subversion.

      Also note that Replace defaults to false in SimpleDB, so there's no need to specify it unless you want it set to true.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.