freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] Possible "Submit Query Params" problem: query not sent as unicode for TDS 7 packet type 0x01 ??
- From: "Bill Meier" <wmeier AT newsguy.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] Possible "Submit Query Params" problem: query not sent as unicode for TDS 7 packet type 0x01 ??
- Date: Sun, 07 Nov 2004 16:43:18 -0500
I'm sure I'm missing something but looking at the source code for
tds_submit_query_params (in v0.62.4 query.c) it seems to me that a TDS7
query with no params will be sent with packet type 0x01 but *not* in
unicode.
This seems at odds with the documentation for the function.
Am I missing something ?
Does it make any difference ? (I'm certainly not that knowledgeable about
the use of TDS7).
[I'm looking at the code to better understand how to decode a capture of a
TDS stream]
Thanks
Bill Meier
/**
* tds_submit_query_params() sends a language string to the database server
for
* processing. TDS 4.2 is a plain text message with a packet type of 0x01,
* TDS 7.0 is a unicode string with packet type 0x01, and TDS 5.0 uses a
<snip>
*/
code fragment <<
if (IS_TDS50(tds)) {
<<snip>>
} else if (!IS_TDS7_PLUS(tds) || !params || !params->num_cols) {
tds->out_flag = 0x01;
tds_put_string(tds, query, query_len);
} else {
<<snip>>
}
...
}
return tds_flush_packet(tds);
>>
- [freetds] Possible "Submit Query Params" problem: query not sent as unicode for TDS 7 packet type 0x01 ??, Bill Meier, 11/07/2004
Archive powered by MHonArc 2.6.24.