From: Greg Sabino Mullane Date: Wed, 29 Apr 2015 02:53:57 +0000 (-0400) Subject: Use old-school form for ORDER BY, as NULLS LAST is not in older versions. X-Git-Tag: 5.4.0~54 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=48441c354d407b6d3d4d7fe550917d04686cb3c5;p=bucardo.git Use old-school form for ORDER BY, as NULLS LAST is not in older versions. --- diff --git a/Bucardo.pm b/Bucardo.pm index dee671245..4dba0776f 100644 --- a/Bucardo.pm +++ b/Bucardo.pm @@ -3938,7 +3938,7 @@ sub start_kid { $self->pause_and_exit(qq{Unknown conflict_strategy $g->{conflict_strategy}!}); } - $SQL .= ' ORDER BY 1 DESC NULLS LAST LIMIT 1'; + $SQL .= ' ORDER BY txntime IS NULL, 1 DESC LIMIT 1'; ## Check every database that generates deltas for my $dbname (@dbs_delta) {