Some fixes and framework docs

This commit is contained in:
Yorhel 2025-02-23 14:05:43 +01:00
parent b2d676b1ed
commit 18e642290d
7 changed files with 313 additions and 17 deletions

View file

@ -63,6 +63,7 @@ static SV *fupg_exec(pTHX_ fupg_conn *c, const char *sql) {
fupg_st *st = safecalloc(1, sizeof(*st));
st->conn = c;
SvREFCNT_inc(c->self);
st->cookie = c->cookie;
st->query = savepv(sql);
st->stflags = c->stflags;
st->result = r;

View file

@ -80,6 +80,16 @@ SENDFN(bool) {
fustr_write_ch(out, SvTRUE(val) ? 1 : 0);
}
RECVFN(void) {
RLEN(0);
(void)buf;
return &PL_sv_undef;
}
SENDFN(void) {
(void)val; (void)out;
}
RECVFN(int2) {
RLEN(2);
return newSViv(fu_frombeI(16, buf));
@ -562,8 +572,8 @@ SENDFN(timestamp) {
/* 603 box */\
/* 604 polygon */\
/* 628 line */\
B( 650, "cidr", inet )\
A( 629, "_line", 628 )\
B( 650, "cidr", inet )\
A( 651, "_cidr", 650 )\
B( 700, "float4", float4)\
B( 701, "float8", float8)\
@ -635,6 +645,7 @@ SENDFN(timestamp) {
A( 2209, "_regoperator", 2204 )\
A( 2210, "_regclass", 2205 )\
A( 2211, "_regtype", 2206 )\
B( 2278, "void", void )\
A( 2949, "_txid_snapshot", 2970 )\
B( 2950, "uuid", uuid )\
A( 2951, "_uuid", 2950 )\