From 61739ddb58cd9c1c7bfa021e167d0e4c5d1c459b Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 7 Mar 2010 16:23:53 +0000 Subject: [PATCH] 2010-03-07 17:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbpgsql/tests/simple.prg ! Fixed date in SQL command to work regardless of mm/dd positions in date. I wonder what is the proper solution which uses a fully portable date format. Anyone? --- harbour/ChangeLog | 7 +++++++ harbour/contrib/hbpgsql/tests/simple.prg | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index f1992f0989..b785250365 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-03-07 17:22 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbpgsql/tests/simple.prg + ! Fixed date in SQL command to work regardless of mm/dd + positions in date. + I wonder what is the proper solution which uses a fully + portable date format. Anyone? + 2010-03-07 17:15 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbpgsql/tests/simple.prg ! Fixed wrong code in sample. diff --git a/harbour/contrib/hbpgsql/tests/simple.prg b/harbour/contrib/hbpgsql/tests/simple.prg index 981dcbb43e..86fe10a5b8 100644 --- a/harbour/contrib/hbpgsql/tests/simple.prg +++ b/harbour/contrib/hbpgsql/tests/simple.prg @@ -71,7 +71,7 @@ FUNCTION Main( cHost, cDatabase, cUser, cPass ) FOR i := 1 TO 10 cQuery := "INSERT INTO test(code, dept, name, sales, tax, salary, budget, Discount, Creation, Description) " - cQuery += "VALUES( " + Str( i ) + ", 2, "TEST", "y", 5, 3000, 1500.2, 7.5, "12-22-2003", "Short Description about what ? ")" + cQuery += "VALUES( " + Str( i ) + ", 2, "TEST", "y", 5, 3000, 1500.2, 7.5, "01-01-2003", "Short Description about what ? ")" oQuery := oServer:Query( cQuery )