The appended patch makes the msvc setting "integer_datetimes" propagate to
ecpg_config.h as well.
Joachim
Index: src/tools/msvc/Solution.pm
===================================================================
RCS file: /projects/cvsroot/pgsql/src/tools/msvc/Solution.pm,v
retrieving revision 1.25
diff -u -r1.25 Solution.pm
--- src/tools/msvc/Solution.pm 15 May 2007 01:57:57 -0000 1.25
+++ src/tools/msvc/Solution.pm 25 May 2007 12:38:04 -0000
@@ -247,8 +247,9 @@
#if (_MSC_VER > 1200)
#define HAVE_LONG_LONG_INT_64
#define ENABLE_THREAD_SAFETY 1
-#endif
EOF
+ print O "#define USE_INTEGER_DATETIMES 1\n" if ($self->{options}->{integer_datetimes});
+ print O "#endif\n";
close(O);
}
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend