db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dyre.Tjeldv...@Sun.COM
Subject DRDA confusion
Date Tue, 30 Oct 2007 18:41:08 GMT
Hi,

I'm trying to understand how the DRDA spec is implemented in the
client driver and on the server. Specifically how to write and parse
an SQLSTT command. 

The implementation of NetPackageRequest.buildSQLSTTcommandData(String)
inserts an SQLSTT code point into the message, but the encoding of the
bytes that follow does not match the specification in the DRDA
manual. It states (Vol 3, page 825) that SQLSTT takes an instance of
BYTESTRDR (len, 0x044, ... bytes ...). But
buildSQLSTTcommandData(String) ends up calling buildNOCMorNOCS(String
string) which seems to encode the SQLSTT value as either

(0x00, len, ... bytes ..., 0xff) 
or
(0xff, 0x00, len, ... bytes ...)

Is there a DRDA expert out there that can explain why? 

Thanks,
-- 
dt


Mime
View raw message