in reply to Re: Database abstraction including data types ( $dbh->{pg_bool_tf} )
in thread Database abstraction including data types
Aternatively do it all in the database:
SELECT CASE WHEN column_name THEN 1 ELSE 0 END AS column_name FROM table ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Database abstraction including data types
by Anonymous Monk on May 20, 2012 at 21:06 UTC | |
by mbethke (Hermit) on May 22, 2012 at 05:36 UTC |