Re: DBIx::ContextualFetch trouble
[prev]
[thread]
[next]
[Date index for 2004/12/27]
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323328-1698267270-1104159288=:15017
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Mon, 27 Dec 2004, Tony Bowden wrote:
> On Mon, Dec 27, 2004 at 04:39:27PM +0200, Gabor Szabo wrote:
>> It seems to me that sometimes the value passed to execute()
>> had an effect and sometimes it did not have an effect on the outcome.
>> (Talking only abot cases with a ? placeholder)
>> If you are still interested I can send you the test file in one piece.
>
> I'm confused.
>
> As I understand it, the problem with DBIx::CF was with the test calling
> execute twice.
That was only one problem.
There was a whole set of other cases where the behavor was strange.
I am attaching my test script (see the comments as well)
Looking at the new test script you put in the distro now I understand
that I might have misunderstood the API.
It seems to be strange that sometimes you call ->execute manually
and sometimes you leave it to the module to do it. This can cause
someone to accidently call execute twice and you don't even get
a warning from DBIx::ContextualFetch.
(just from some other module and even that only I get :)
Gabor
--8323328-1698267270-1104159288=:15017
Content-Type: APPLICATION/x-troff; name="01.t"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.61.0412271654480.15017@xxxxx.xxx.xx.xx>
Content-Description:
Content-Disposition: attachment; filename="01.t"
IyEvdXNyL2Jpbi9wZXJsIC13Cgp1c2Ugc3RyaWN0OwoKdXNlIFRlc3Q6Ok1v
cmU7CgpCRUdJTiB7CglldmFsICJ1c2UgREJEOjpTUUxpdGUiOwoJcGxhbiAk
QCA/IChza2lwX2FsbCA9PiAnbmVlZHMgREJEOjpTUUxpdGUgZm9yIHRlc3Rp
bmcnKSA6ICh0ZXN0cyA9PiAzMCk7Cn0KCnVzZSBGaWxlOjpUZW1wIHF3L3Rl
bXBmaWxlLzsKbXkgKHVuZGVmLCAkREIpID0gdGVtcGZpbGUoKTsKbXkgQERT
TiA9ICgKCSJkYmk6U1FMaXRlOmRibmFtZT0kREIiLCAnJywgJycsCgl7IEF1
dG9Db21taXQg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