mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Geom/Ctrl/PlotterCtrl: new methods to check for reversed orientation of coordinate axes
plugin/jpg/jpgupp.cpp: support for EXIM image orientation metadata plugin/sqlite3/Sqlite3upp.cpp: support for BLOB write using SqlRaw Oracle/Oci8.cpp: fixed OracleBlob::Write to survive zero-length write git-svn-id: svn://ultimatepp.org/upp/trunk@4100 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1b334d9d1d
commit
1cd8f2c8e4
5 changed files with 52 additions and 5 deletions
|
|
@ -1491,9 +1491,11 @@ void OracleBlob::Write(int64 at, const void *ptr, dword size) {
|
|||
ASSERT(IsOpen() && (style & STRM_WRITE) && session);
|
||||
ASSERT(at == (dword)at);
|
||||
ub4 n = size;
|
||||
if(session->oci8.OCILobWrite(session->svchp, session->errhp, locp, &n, (dword)at + 1, (void *)ptr, size,
|
||||
OCI_ONE_PIECE, NULL, NULL, 0, SQLCS_IMPLICIT) != OCI_SUCCESS || n != size)
|
||||
int res = session->oci8.OCILobWrite(session->svchp, session->errhp, locp, &n, (dword)at + 1, (void *)ptr, size,
|
||||
OCI_ONE_PIECE, NULL, NULL, 0, SQLCS_IMPLICIT);
|
||||
if(res != OCI_SUCCESS || n != size)
|
||||
{
|
||||
RLOG("OracleBlob::Write(" << at << ", " << size << "): res = " << res << ", n = " << n);
|
||||
SetError();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue