in reply to Re: DBD::ODBC not support
in thread DBD::ODBC not support
I have been trying to understand this for some time now. The ':' in the strings I was using for time parameters was in fact the problem.
my $stime = '2010-01-01 00:00:00' my $qstring = qq{select * from mytable where start > $stime return};
which returned the error "DBD::ODBC does not yet support binding a named parameter more than once". After reading this, I made things work by (abbreviatedj example)...
my $stime = '2010-01-01 00:00:00' my $qstring = qq{select * from mytable where start > '$stime' return};
..which made all work just fine. Apparently those ':' create the problem.
Thanks for pointing that out!
Just goes to show; elephants don't bite, mosquitoes do!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBD::ODBC not support
by mje (Curate) on Dec 06, 2010 at 13:35 UTC |