On 17 Mar 2005, at 15:13, David Wheeler wrote:

Probably off-topic for a SQLite list :-)

I'm not sure Perl will cast a non-numeric string
("2005-03-22T00:00:00") to a number.  What number are you
looking for?

Actually the code that was cast was "substr(a, 6, 2)", which was evaluating to "03", and I wanted it to be just 3, because when I bind "03" in DBD::SQLite, it changes it to 3.

You can force the binding type in DBD::SQLite - see the DBI docs (grep for ":sql_types").


Matt.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

Reply via email to