tds_generic_put: Correct BCP 7.x new blob type handling#570
Conversation
... i.e., of VARCHAR(MAX) and the like. Signed-off-by: Aaron M. Ucko <ucko@ncbi.nlm.nih.gov>
|
That's... interesting! Tests passes with both this commit and without, so I suppose this path it's not really tested. Worth to write a test, and check TDS documentation! |
|
An analogous patch to 1.4 has been helpful for some of my usage. However, when I locally extended |
|
AFAICT, whether this patch is helpful or harmful depends on runtime context TBD; I'll try to identify the relevant condition and adjust it accordingly. |
|
TDS protocol documentation seems to indicate PLP length is needed. Yes, it would be useful to extend a test to catch this. I vaguely remember this specific code (I wrote it) and it was kind of a bug in a specific server version, or a combination of server and protocol version. Wondering why I didn't write a test at that time. |
|
Added a test, see 3006113. Looks like it's working with current code, not with this patch applied. |
|
Could it be that this commit was here to fix an old bug handling empty strings? |
|
Aha, the supporting logic for |
|
Withdrawn in favor of #558. |
... i.e., of VARCHAR(MAX) and the like. Split from #555.