pg: Support binary bind params

This commit is contained in:
Yorhel 2025-02-08 10:35:43 +01:00
parent 166744dd51
commit 30b457d2b8
6 changed files with 226 additions and 78 deletions

View file

@ -81,9 +81,10 @@ static void fustr_init_(pTHX_ fustr *s, SV *mortal, size_t maxlen) {
}
#define fustr_start(s) (((s)->sv ? SvPVX((s)->sv) : (s)->sbuf))
#define fustr_len(s) ((s)->cur - fustr_start(s))
static void fustr_grow(pTHX_ fustr *s, size_t add) {
size_t off = s->cur - (s->sv ? SvPVX(s->sv) : s->sbuf);
size_t off = fustr_len(s);
size_t newlen = sizeof s->sbuf;
char *buf;
add += off;