Commit Graph

3 Commits

Author SHA1 Message Date
Viktor Szakats
16aeb07395 2011-02-06 15:39 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbpgsql/hbpgsql.hbx
  * contrib/hbpgsql/tests/hdbctest.prg
  * contrib/hbpgsql/hdbcpg.prg
  * contrib/hbsqlit3/tests/hdbctest.prg
  * contrib/hbsqlit3/hbsqlit3.hbx
  * contrib/hbsqlit3/hdbcsqlt.prg
    + Renamed HDBC classes to have 'hdbc' prefix (was: 'T')
2011-02-06 14:39:27 +00:00
Viktor Szakats
b901bd2241 2010-11-21 21:17 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbsqlit3/hdbcsqlt.prg
  * contrib/hbpgsql/hdbcpg.prg
    % Minor optimizations.
    ! Fixed RTEs by EXPORTing two object variables:
          TSQLTStatement:pRes (used from HDBC code)
          TSQLTResultSet:nRows
      I'm not sure this is right solution, f.e. one of them
      is used internally by HBODBC code.
2010-11-21 20:18:17 +00:00
Viktor Szakats
d267434478 2010-11-21 19:38 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbsqlit3/hbsqlit3.hbp
  + contrib/hbsqlit3/hdbcsqlt.prg
  + contrib/hbsqlit3/tests/hdbctest.prg
  * contrib/hbpgsql/hbpgsql.hbp
  + contrib/hbpgsql/hdbcpg.prg
  + contrib/hbpgsql/tests/hdbctest.prg
    + Added code posted by Lorenzo Fiorini. Many thanks for this contribution.
      It's JDBC-like classes to access PGSQL and SQLITE backends.

    + Cleanups to build in Harbour.
    + Added PROTECTED scope for all object variables. This cause at least
      one failure in sqlt. see TOFIX section.
    + Changed to use PQconnectDB() instead of deprecated PQconnect()
    + Some formatting.

    ; TOFIX: These hbpgsql functions are required, but they are not yet
             implemented in Harbour SVN:
        PQPREPARE()
        PQEXECPREPARED()

    ; TOFIX: Internal are accessing obj vars directly:
        Error BASE/42  Scope violation (protected): TSQLTSTATEMENT:PRES
        Called from TSQLTSTATEMENT:PRES(0)
        Called from TSQLTRESULTSET:NEW(0)
        Called from TSQLTSTATEMENT:EXECUTEQUERY(0)
        Called from MAIN(91)

    ; TODO: Delete PQRDD experimental RDD from pgsql.
    ; TODO: Rename classes to begin with HDBC*
    ; TODO: Somehow we should ensure the class layout doesn't deviate from 
            a common standard. F.e. by inheritance, or I don't know if 
            Harbour has something like interfaces in OOP.
2010-11-21 18:39:38 +00:00