Menu

installation problems with postgresql

John Read
2002-08-01
2002-08-02
  • John Read

    John Read - 2002-08-01

    HI,
    I am trying to install phPay V2.01 on a system with a running postgres server. I could not get the web-based routine to build either database,or tables so I have now tried the sql files in admin/doc/phpayv201complete.sql. These bang out completely as the comment "#" is not accepted with postgresql. Having changed them, I found that the "DROP TABLE IF EXISTS xxx" also does not exist in postgresql. Am I missing something, or are the complete setup, etc only for MySQL??

    regards
    John Read

     
    • John Read

      John Read - 2002-08-02

      HI,
      I have editted the sql file to allow it to pass in postgresql,. There are a lot of changes. One major change is that the table "user" is not allowed, it is a reserved name. I can imagine that this is a show-stopper!!
      I can send you the modified sql file. I have left the original sql in places where the changes are not obvious.
      The question remains: has phpay ever run using postgres?? or is it always run on MySQL?

      regards
      John

       
    • jaume teixi

      jaume teixi - 2002-08-02

      I was into it recently and is definitive :
      major changes needed to run postgresql

      - phpayv201complete.sql

       
    • jaume teixi

      jaume teixi - 2002-08-02

      I was into it recently and is definitive :
      major changes needed to run postgresql

      - phpayv201complete.sql
        - uses reserved word "user" as table
        - no KEY ID (ID)
        - no tinyint(1)
        - no smallint(4)

      - *.php files
        - "from user" & "updated user" should be replaced
        - On "insert" or "delete" it uses "or db_die()" when Postgresql never returns nothing...

        - definitive: a major effort to porting

       
    • John Read

      John Read - 2002-08-02

      Whilst experimenting I found that the variable $db_type is automatically set to the wrong value during first start. It is set to "postgresl" not "postgresql". (in admin/admain.php). This means that the postgresql code never got called anyway!!!

      The real problem is the "user" table I think.
      I have got a working (passing) phpayv201complete.sql that I can send.

       
    • Andreas Kansok

      Andreas Kansok - 2002-08-02

      I created a new forum to for PostgreSQL.

      http://sourceforge.net/forum/forum.php?forum_id=199615

       

Log in to post a comment.