Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLResult.cpp @ 242:b97a537f4613
MySQL: Support of range reads for the storage area
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Apr 2021 17:00:02 +0200 |
parents | 3236894320d6 |
children | 9d00e5e073e8 |
comparison
equal
deleted
inserted
replaced
241:a063bbf10a3e | 242:b97a537f4613 |
---|---|
173 void PostgreSQLResult::GetLargeObject(std::string& result, | 173 void PostgreSQLResult::GetLargeObject(std::string& result, |
174 unsigned int column) const | 174 unsigned int column) const |
175 { | 175 { |
176 CheckColumn(column, OIDOID); | 176 CheckColumn(column, OIDOID); |
177 | 177 |
178 /** | |
179 * In PostgreSQL, the type "Oid" corresponds to "unsigned int", cf. | |
180 * /usr/include/postgresql/10/server/postgres_ext.h | |
181 **/ | |
178 Oid oid; | 182 Oid oid; |
179 assert(PQfsize(reinterpret_cast<PGresult*>(result_), column) == sizeof(oid)); | 183 assert(PQfsize(reinterpret_cast<PGresult*>(result_), column) == sizeof(oid)); |
180 | 184 |
181 oid = *(const Oid*) PQgetvalue(reinterpret_cast<PGresult*>(result_), position_, column); | 185 oid = *(const Oid*) PQgetvalue(reinterpret_cast<PGresult*>(result_), position_, column); |
182 oid = ntohl(oid); | 186 oid = ntohl(oid); |