I think I was not explained my problem clearly. I also do not worry about the return value but the DELETE query behaves differently in execute & do.
$dbHandle->do is not deleting the DB rows. This is what my expected behaviour because , Ex: SESSION_MAX_LIFE_TIME = 900 secs (15mins), and $now is perl's time() function value. I would like to delete session id which is more than 15 mins old. In this case, session ids are just created, it needs to live for 15 mins.
$stHandle->execute just deletes all the sessionsids (all db rows in database) , It should behave like $dbHandle->do right?.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||