Sql: PGSQL SqlExp now limiting Time::Low() as well

git-svn-id: svn://ultimatepp.org/upp/trunk@6164 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-07-03 07:50:34 +00:00
parent f01703c3e9
commit fbf661f7c6

View file

@ -162,6 +162,7 @@ void SqlCompile(const char *&s, StringBuffer *r, byte dialect)
x.year, x.month, x.day, x.second + 60 * (x.minute + 60 * x.hour));
break;
case PGSQL:
if(x.year < 1) x.year = 1; // Date::Low()
*r << "timestamp ";
default:
*r << Format("\'%04d-%02d-%02d %02d:%02d:%02d\'",