Change the default precision of Timestamp type. REL-07_02_0003
authorHiroshi Inoue <inoue@tpf.co.jp>
Thu, 3 Oct 2002 08:16:57 +0000 (08:16 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Thu, 3 Oct 2002 08:16:57 +0000 (08:16 +0000)
pgtypes.c

index 57a34bd1c3d11be6d66e710e4f63623b260bd7af..5dc96043db998b8ace8bb02f3e748c7920ad9471 100644 (file)
--- a/pgtypes.c
+++ b/pgtypes.c
@@ -758,7 +758,7 @@ getTimestampDecimalDigits(StatementClass *stmt, Int4 type, int col)
    else
        atttypmod = QR_get_atttypmod(result, col);
    mylog("atttypmod2=%d\n", atttypmod);
-   return (atttypmod > -1 ? atttypmod : 0);
+   return (atttypmod > -1 ? atttypmod : 6);
 }