Subject: | SQL::Query doesn't prepare() or execute() (but should?) |
Hello barbie,
It took me just a little while to realise that although Data::Phrasebook::SQL::Query (0.20) was originally coded to call prepare() and execute() on its DB statement handles before fetch*(), this feature has been disabled with the following comment:
# Currently the following is not true, but will be fixed at some point:
#
#Any C<fetch*> methods will additionally call C<execute>
#unless the statement handle is already active.
It should be happening in the AUTOLOAD, but a tiernary operator has been 'fixed' to avoid the additional calls.
I would be grateful if you could tell me why this is the case - I'm no DBI expert but reenabling the feature seemed to cause no problems to my system.
Many thanks in advance,
regards,
oliver.