[fpc-pascal]ODBC

DEMIERRE Osvaldo TECSIS ODEMIERRE at TECSIS.COM
Mon Jun 9 14:45:44 CEST 2003


Hi

I am running FPC 1.06 on WIN2000 and I want to work with MySQL 4.0.13.  I
tried to run el demo program "TESTODBC.PP" (previous adapter it) but I have
problem with fields of type "VARCHAR"... Question: only support is for type
"CHAR"?  

Another question: I have modified this example program for show the values
after "select" but there are any wrong with these (I received the data
TRUNCATED):

My modified code:

(...)
        repeat
            for c:=1 to colCount do
            Move(Cols[c].Coldata^,var1,Cols[c].ColSize);
            writeln(var1);
(...)

The package "ODBC" work with ODBC 3.51 or only with ODBC 2.5?

Can someone give me a hint?

Where are more examples?

Thanks in advance.

PD.:Sorry for my bad English! (I speak Spanish!)




More information about the fpc-pascal mailing list