postgresql fixes for DomainHandler perhaps

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1240 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
David Goodwin 13 years ago
parent ecf7757981
commit 5a18a1e48b

@ -279,7 +279,7 @@ class DomainHandler extends PFAHandler {
$colformat = array( $colformat = array(
# TODO: replace hardcoded %Y-%m-%d with a country-specific date format via *.lang? # TODO: replace hardcoded %Y-%m-%d with a country-specific date format via *.lang?
'ts' => "DATE_FORMAT(###KEY###, '%Y-%m-%d') AS ###KEY###, ###KEY### AS _###KEY###", 'ts' => "TO_DATE(text(###KEY###), 'YYYY-mm-dd') AS ###KEY###, ###KEY### AS _###KEY###",
'bool' => "CASE ###KEY### WHEN '" . db_get_boolean(true) . "' THEN '1' WHEN '" . db_get_boolean(false) . "' THEN '0' END as ###KEY###," . 'bool' => "CASE ###KEY### WHEN '" . db_get_boolean(true) . "' THEN '1' WHEN '" . db_get_boolean(false) . "' THEN '0' END as ###KEY###," .
"CASE ###KEY### WHEN '" . db_get_boolean(true) . "' THEN '$yes' WHEN '" . db_get_boolean(false) . "' THEN '$no' END as _###KEY###", "CASE ###KEY### WHEN '" . db_get_boolean(true) . "' THEN '$yes' WHEN '" . db_get_boolean(false) . "' THEN '$no' END as _###KEY###",
); );

Loading…
Cancel
Save