summaryrefslogtreecommitdiff
path: root/lib/Catmandu/Store/DBI/Handler/Pg.pm
diff options
context:
space:
mode:
authornjfranck <njfranck@ca20c521.ugent.be>2016-01-05 14:31:26 +0100
committernjfranck <njfranck@ca20c521.ugent.be>2016-01-05 14:31:26 +0100
commit1a2d64d30559f10eed2dcc81aaf9556af458a438 (patch)
treef7aab890befe7f65bb46df155fb3640d9a6fa1a7 /lib/Catmandu/Store/DBI/Handler/Pg.pm
parent0221eb38eb09213b3f6e5c9a257a1b07c55bf838 (diff)
add support for datetime
Diffstat (limited to 'lib/Catmandu/Store/DBI/Handler/Pg.pm')
-rw-r--r--lib/Catmandu/Store/DBI/Handler/Pg.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Catmandu/Store/DBI/Handler/Pg.pm b/lib/Catmandu/Store/DBI/Handler/Pg.pm
index 170df81..f3345a4 100644
--- a/lib/Catmandu/Store/DBI/Handler/Pg.pm
+++ b/lib/Catmandu/Store/DBI/Handler/Pg.pm
@@ -20,6 +20,8 @@ sub _column_sql {
$sql .= 'INTEGER';
} elsif ($map->{type} eq 'binary') {
$sql .= 'BYTEA';
+ } elsif ($map->{type} eq 'datetime') {
+ $sql .= 'TIMESTAMP';
}
if ($map->{array}) {
$sql .= '[]';