in reply to SQL Server CAST problem using CASE with DBD::ODBC
The Perl solution would be to get rid of the cast, and simply test date_completed in Perl:
$sth=$dbh->prepare(select ....); $sth->execute; $res=$sth->fetchrow_hashref; $$res{is_complete}=defined($$res_{date_completed});
|
|---|