I'm testing mod_harbour and need help

Post Reply
zbiant
Posts: 2
Joined: Sat Apr 25, 2020 3:01 am

I'm testing mod_harbour and need help

Post by zbiant » Sat Apr 25, 2020 9:39 am

translated from Polish by Google:
tests mod_harbor e.g. dbrowse.prg works ok,
now instead of code

USE (hb_GetEnv ("PRGPATH") + "/data/customer.dbf") SHARED

I want to connect to my POSTGRESQL database.
In the normal Harbor application I use: contrib\rddsql and contrib\sddpg
code
xCONN: = rddInfo (RDDI_CONNECT, {"POSTGRESQL", cIP, cUser, cPassword, cdataBase}, "SQLMIX")
in mod_harbour i got error:

Error: Variable does not exist
operation: RDDI_CONNECT
called from: pcode.hrb, MAIN, line: 17
called from: HB_HRBDO, line: 0
called from: ..\apache.prg, EXECUTE, line: 143

Source:
0015: cIP := "192.168.17.248"
0016:
0017 => xCONN := rddInfo( RDDI_CONNECT, { "POSTGRESQL", cIP, cUZ, cPA , cBA }, cRDD )
0018:
0019:

how to do it in mod_harbour?

I use win10 64 bit, mingw64 gcc and harbour 3.2 64 bit,
postgresql 11.7 64 bit is on linux

regards zbiant

apais
Posts: 11
Joined: Sun Nov 10, 2019 12:43 am

Re: I'm testing mod_harbour and need help

Post by apais » Tue Apr 28, 2020 1:49 am

Probably you don't have pgsql linked into your mod_harbour

zbiant
Posts: 2
Joined: Sat Apr 25, 2020 3:01 am

Re: I'm testing mod_harbour and need help

Post by zbiant » Wed Apr 29, 2020 3:34 am

Thank you for your answer

How to build mod_harbour with mingw64 (msys2) ?
regards zbiant

Post Reply