Hello, We are on the way to move from adabasd to maxdb (Version 7.6). Now we are faced with a problem concerning our c++- programs ( Precompiler). The problem has with Char-Hostvariable to do. Int-Hostvariable works as expected.
It seems to be a runtime problem. I can compile and link it without any error. During running, I got Segmentation fault. Debugging didn´t help. Is it a dynamic link (shared libraries) problem? LD_LIBRARY_PATH is set as following: /opt/sdb/7600/lib:/opt/sdb/7600/sap:/opt/sdb/programs/lib: /opt/sdb/programs/web/lib:/opt/sdb/programs/runtime/7600/lib: /opt/sdb/programs/runtime/7500/lib: Here is a small program, which shows how the code looks like. *******************************************************************+ #include <iostream> #include <strstream> #include <iomanip> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <stdio.h> #include <rw/locale.h> #include <sys/shm.h> #include <sys/mman.h> int main(int argc, char *argv[]) { exec sql begin declare section; char serverdb[17]; char usr[31], servername[27], pwd[17]; char account_id[17]= "C000096565"; int wid; exec sql end declare section; strcpy(serverdb, "DEVDB"); strcpy(usr, "DBA"); strcpy(pwd, "dba"); strcpy(servername, "deimos"); /* strcpy(account_id, "C000096565"); */ wid=11; exec sql set serverdb :serverdb on :servername; exec sql connect :usr identified by :pwd timeout 0; if (sqlca.sqlcode!=0) { printf("Logon-Failure %d\n", sqlca.sqlcode); } /* exec sql update warning set STATE=100 where warnid=:wid; ß- this one works*/ exec sql update warning set STATE=100 where DEBTORID=:account_id; if (sqlca.sqlcode!=0) { printf("Request-Failure %d\n", sqlca.sqlcode); } else { exec sql commit work; } } ********************************************************* Does anybody know the reason?. Thank very much Menges -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]