[SQL] include in both ecpg and C++

2005-01-19 Thread none none
I have a header file that gets included by both C/C++ code and ecpg code. In this header are a few structs that get used by both code (C/C++ and ecpg). In order to get this to work for Informix, we had to do something like this in the header file: #ifdef TFLG EXEC SQL BEGIN DECLARE SECTION #e

[SQL] TEXT type blob extraction in ecpg

2005-01-14 Thread none none
Does any one know how to properly extract a TEXT type blob (undefined char length) in ecpg (Linux system)? We are converting our SQL from Informix to PostGres. Informix had a specific struct defined and I believe handled the dynamic memory allocation, but I cannot find any guidance on this iss

[SQL] TEXT blob extraction in ecpg

2005-01-10 Thread none none
Does any one know how to properly extract a TEXT type blob (undefined char length) in ecpg (Linux system)? We are converting our SQL from Informix to PostGres. Informix had a specific struct defined and I believe handled the dynamic memory allocation, but I cannot find any guidance on this iss