List:MaxDB« Previous MessageNext Message »
From:Aaron Taylor Date:February 2 2004 5:41pm
Subject:C Precomiler: SQLDA does not contain column names after DESCRIBE
View as plain text  
Hi,

I'm using MaxDB 7.5.0.0.8 with SuSE 9.0.

When using the Precomopiler-Interface I have a strange problem I'm 
afraid I wasn't able to solve.

After doing a

   EXEC SQL PREPARE test FROM :a_sql_stmnt;
   EXEC SQL EXECUTE test;
   EXEC SQL PREPARE fetch1 FROM 'FETCH USING DESCRIPTOR';

at last I do a

   EXEC SQL DESCRIBE fetch1;

which also works fine. I can access all the table information in
sqlda. All data? No, while

	sqlda.sqlvar[ii].coltype     and
	sqlda.sqlvar[ii].colfrac

are available and contain sensible data

	sqlda.sqlvar[ii].colname

isn't. It just contains the string "(null)".

What am I doing wrong?

Thanks in advance,

Aaron


-- 

aaron taylor
universitaet heidelberg
kirchhoffinstitut fuer physik, inf 227
d-69120 heidelberg
tel. +49-6221-54-9811
mailto:taylor@stripped

Thread
C Precomiler: SQLDA does not contain column names after DESCRIBEAaron Taylor2 Feb
RE: C Precomiler: SQLDA does not contain column names after DESCRIBEMarco Paskamp3 Feb