Hi (Byron ?),
I think I've found a bug in the postODBC driver, version
The problem is with the function SQLGetData.
According to the docs of ODBC, when retrieving long data
(blobs), if the buffer is not enough, this function must
return SQL_SUCCESS_WITH_INFO and SQLSTATE 01004
(String data, right truncated) and in the variable
length_or_ind, it must return the _remaining_ byte
length of the data.
The function is not working this way, ie I call it
SQLGetData( hstmt, FieldNo, SQL_BINARY, PChar(TargetValue),
Note that I put 15 as the buffer size, I _know_ that the
total size of the field (a text field in postgres) is 23
bytes, so this call must return SQL_SUCCESS_WITH_INFO
and SQLSTATE 01004 and the value of strlen_or_ind must
But it return SQL_SUCCESS and strlen_or_ind = 23.
Also, the driver, don't must write more bytes than
the buffer size, ie. if the buffer size is 15 the
driver should write no more than 15 bytes.
Maybe this is the cause why other people are insulting the
BDE with blob fields (I don't use the BDE, btw)
Hope this help.
PS: if you will fix this, please, test it with 0 as the
buffer size, because I intend to make two calls, one with
0 (the driver don't write _nothing_ to the buffer) to
know the total bytes of the data and other with this number
as the buffer length.
Who is the General Failure and what f* do reading my disk !?
pgsql-interfaces by date
|Next:||From: Eric Lee Green||Date: 1998-12-07 05:18:48|
|Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!|
|Previous:||From: Raymond Law||Date: 1998-12-07 02:34:21|
|Subject: Can't Update Database!|