Commit 595ffec
committed
guid: add VARBINARY wire test, drop dead SQL_C_BINARY dispatch arms
Test coverage:
- BindGuidToVarcharOctets16 — binds SQL_C_GUID to VARCHAR(16) CHARACTER
SET OCTETS (the wire form of native FB4+ VARBINARY(16)). The existing
BindGuidToCharOctets16 only covers the fixed CHAR(16) (SQL_TEXT) slot;
this exercises convGuidToBinary writing into a SQL_VARYING (length-
prefixed) wire buffer. Round-trips clean via UUID_TO_CHAR.
Dead-code removal:
- Drop the wire-side `to->conciseType == SQL_C_BINARY` arm. Native FB4+
BINARY/VARBINARY reach the dispatch as subtype-1 / sqllen-16 OCTETS
(caught by the branch above); the only type that yields conciseType
SQL_C_BINARY is a binary BLOB, which is not a sane GUID-bind target.
- Drop the app-side `case SQL_C_BINARY` arm. That output direction is
unreachable until column-side SQL_GUID mapping (T5-5 / #287) lands;
convGuidToString / convGuidToStringW already cover what exists today.
convGuidToBinary stays (still used by the OCTETS wire branch). Verified:
all 4 GuidParamBindingTest cases pass and the full suite shows no
regressions (203 passed, 0 failed) on FB 5.0.3 locally.1 parent f08e69e commit 595ffec
2 files changed
Lines changed: 55 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | | - | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1012 | 1014 | | |
1013 | 1015 | | |
1014 | 1016 | | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | 1017 | | |
1019 | 1018 | | |
1020 | 1019 | | |
| |||
1031 | 1030 | | |
1032 | 1031 | | |
1033 | 1032 | | |
1034 | | - | |
1035 | | - | |
1036 | 1033 | | |
1037 | 1034 | | |
1038 | 1035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
611 | 658 | | |
612 | 659 | | |
613 | 660 | | |
| |||
0 commit comments