*** pgsql/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c 2010/02/09 08:57:13 1.4 --- pgsql/src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c 2010/02/16 18:41:23 1.5 *************** if (sqlca.sqlcode < 0) sqlprint ( );} *** 104,113 **** if (sqlca.sqlcode) break; - if (isinf(d)) - printf("%d %sInf '%s'\n", id, (d < 0 ? "-" : "+"), val); if (isnan(d)) printf("%d NaN '%s'\n", id, val); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest1 ( id , d ) values ( $1 + 3 , $2 )", ECPGt_int,&(id),(long)1,(long)1,sizeof(int), --- 104,113 ---- if (sqlca.sqlcode) break; if (isnan(d)) printf("%d NaN '%s'\n", id, val); + else if (isinf(d)) + printf("%d %sInf '%s'\n", id, (d < 0 ? "-" : "+"), val); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into nantest1 ( id , d ) values ( $1 + 3 , $2 )", ECPGt_int,&(id),(long)1,(long)1,sizeof(int),