Updating rows kinda works.
Blocking calls are still used.
This commit is contained in:
parent
99d738ee65
commit
628c16e2f4
10 changed files with 179 additions and 81 deletions
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue