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?
This commit is contained in:
Viktor Szakats
2010-03-07 16:23:53 +00:00
parent 3f3f7ba9ab
commit 61739ddb58
2 changed files with 8 additions and 1 deletions

View File

@@ -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.

View File

@@ -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 )