1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Added explicit casts for date/interval/timestamp.

This commit is contained in:
Michael Meskes
2003-07-25 16:10:26 +00:00
parent f1a27b120d
commit 6a0d6d0060
3 changed files with 61 additions and 51 deletions

View File

@ -34,7 +34,7 @@ main()
exec sql insert into date_test(d, ts, iv) values (:date1, :ts1, now()-'Mon Jan 17 1966');
exec sql select * into :date1, :ts1 , :iv1 from date_test;
exec sql select * into :date1, :ts1 , :iv1 from date_test where d=:date1;
text = PGTYPESdate_to_asc(date1);
printf ("Date: %s\n", text);