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
|
|
@ -153,6 +153,18 @@ Result Connection::query(const char * command)
|
|||
return Result(result);
|
||||
}
|
||||
|
||||
Result Connection::queryParam(const char * command, const Params ¶ms)
|
||||
{
|
||||
PGresult *result = PQexecParams(conn, command, params.size(), params.types(),
|
||||
params.values(), params.lengths(), params.formats(), 0);
|
||||
return Result(result);
|
||||
}
|
||||
|
||||
Result Connection::queryParam(const QString &command, const Params ¶ms)
|
||||
{
|
||||
return queryParam(command.toUtf8().data(), params);
|
||||
}
|
||||
|
||||
|
||||
bool Connection::sendQuery(const char *query)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue