| 1 |
Author: Frediano Ziglio <[email protected]> |
| 2 |
Date: Thu Aug 28 21:02:57 2025 +0100 |
| 3 |
|
| 4 |
Use CORK flag correctly, do not delay partial packets |
| 5 |
|
| 6 |
Resetting TCP_CORK flag in Linux causes the partial packets |
| 7 |
to be flushed however if the queue is full partial packets |
| 8 |
are not moved to the queue. |
| 9 |
Partial packets are then processed when space is available. |
| 10 |
However FreeTDS used to set again the flag causing partial |
| 11 |
packets to be delayed. |
| 12 |
Remove that delay reducing latency. |
| 13 |
|
| 14 |
Merge: 569401e6 65efc2d5 |
| 15 |
Author: Frediano Ziglio <[email protected]> |
| 16 |
Date: Wed Jun 25 17:15:09 2025 +0100 |
| 17 |
|
| 18 |
Merge test for vasprintf for VMS |
| 19 |
|
| 20 |
Author: Craig A. Berry <[email protected]> |
| 21 |
Date: Tue Jun 24 10:38:20 2025 -0500 |
| 22 |
|
| 23 |
VMS has had vsnprintf for a long time |
| 24 |
|
| 25 |
And this allows for a better vasprintf fallback for systems where |
| 26 |
vasprintf is not available. |
| 27 |
|
| 28 |
Author: Craig A. Berry <[email protected]> |
| 29 |
Date: Mon Jun 23 07:26:27 2025 -0500 |
| 30 |
|
| 31 |
Better test for vasprintf on VMS |
| 32 |
|
| 33 |
Recentish CRTLs do have it, but the test I added 23 years ago was |
| 34 |
not correctly detecting it. |
| 35 |
|
| 36 |
Author: Frediano Ziglio <[email protected]> |
| 37 |
Date: Wed Jun 18 11:08:10 2025 +0100 |
| 38 |
|
| 39 |
tds: Fix bulk copy in for Microsoft XML type |
| 40 |
|
| 41 |
As documented, and tested, the protocol requires the usage |
| 42 |
of NVARCHAR type, not XML, which is refused causing an error. |
| 43 |
|
| 44 |
Merge: 349445e4 6c532e2a |
| 45 |
Author: Frediano Ziglio <[email protected]> |
| 46 |
Date: Sat May 31 17:43:29 2025 +0100 |
| 47 |
|
| 48 |
Fix conversion bound checks, tsql message formatting |
| 49 |
|
| 50 |
Author: Frediano Ziglio <[email protected]> |
| 51 |
Date: Sat May 31 17:02:34 2025 +0100 |
| 52 |
|
| 53 |
tds: Fix bound check conversion (float -> uint) |
| 54 |
|
| 55 |
Converting from floating point to unsigned int the bound check |
| 56 |
was incorrect resulting in invalid conversions if the input |
| 57 |
value was not in range. |
| 58 |
|
| 59 |
Author: Frediano Ziglio <[email protected]> |
| 60 |
Date: Sat May 31 17:00:18 2025 +0100 |
| 61 |
|
| 62 |
tsql: Avoid possible invalid type formatting a message |
| 63 |
|
| 64 |
Specifically: |
| 65 |
|
| 66 |
tsql.c: In function ‘do_query’: |
| 67 |
tsql.c:292:80: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘__suseconds64_t’ {aka ‘long long int’} [-Wformat=] |
| 68 |
292 | sprintf(message, "Total time for processing %d rows: %ld msecs\n", |
| 69 |
| ~~^ |
| 70 |
| | |
| 71 |
| long int |
| 72 |
| %lld |
| 73 |
293 | rows, (long) ((stop.tv_sec - start.tv_sec) * 1000) + ((stop.tv_usec - start.tv_usec) / 1000)); |
| 74 |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 75 |
| | |
| 76 |
| __suseconds64_t {aka long long int} |
| 77 |
|
| 78 |
long should be enough for 49 days in case of 32 bit, I hope |
| 79 |
your query doesn't take so long. |
| 80 |
|
| 81 |
Author: Frediano Ziglio <[email protected]> |
| 82 |
Date: Mon Apr 21 15:58:08 2025 +0100 |
| 83 |
|
| 84 |
ctlib: Remove leak freeing command |
| 85 |
|
| 86 |
Release cursor while freeing command. |
| 87 |
|