return \ '(SELECT(1))';
}
+{
+ my %part_map = (
+ month => 'mm',
+ day_of_month => 'dd',
+ year => 'yyyy',
+ );
+
+ sub _datetime_sql { "DATEPART('$part_map{$_[1]}', $_[2])" }
+ sub _datetime_diff_sql { "DATEDIFF('$part_map{$_[1]}', $_[2], $_[3])" }
+}
+
+
1;