> Now I want to requery() PBiz > >> paultest.PBiz.setParams(1) > # If I don't set params for PBiz here, it will be incorrect. > But cascadingly, it sets param again for CBiz & GBiz, which causes > problem in requery childs. > > >> paultest.PBiz.requery() > For PBiz requery, params are (1,) > But while requery() on children, params are (1, 1) > So it throws exception-- > DBQueryException: Incorrect number of bindings supplied. The current > statement uses 1, and there are 2 supplied. > > How do I handle this? > Regards, > Vineet
One way out of this may be: >> T = () # an empty tuple >> CBiz.setParams(T) # this will clear earlier params >> PBiz.setParams(1) >>PBiz.requery() This works. But as Paul rightly suggested earlier, here I get a feeling of heading down a complex path and fighting it. Is there any other way to do it? ----Vineet _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
