Re: [SQL] Function in C++

2005-01-01 Thread TJ O'Donnell
All I do is write a c interface with postgresql, using the standard method described in the documentation. There are example in the src code tree, too. The only "trick" is to declare my c++ functions to be callable by c, like in this example: extern "C" int oe_smarts_match(char *smi, char *sma) {

[SQL] Function in C++

2004-12-30 Thread Jose Mendoza
  I would like to have, only if it is possible, a small example of how can be that done. I have this problem now because I have a very light interface using the ODBC and with the same code I can connect to Postgresql (servers Linux) and SQLserver (servers Windows). And the libpq++ works in