Updating rows kinda works.

Blocking calls are still used.
This commit is contained in:
eelke 2018-02-18 07:15:43 +01:00
parent 99d738ee65
commit 628c16e2f4
10 changed files with 179 additions and 81 deletions

View file

@ -183,8 +183,10 @@ Value Result::get(int col, int row) const
colRangeCheck(col);
rowRangeCheck(row);
bool is_null = PQgetisnull(result, row, col);
char *ptr = is_null ? nullptr : PQgetvalue(result, row, col);
return Value(
PQgetvalue(result, row, col),
ptr,
PQftype(result, col)
);
}