aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/statement.cxx
AgeCommit message (Collapse)AuthorFilesLines
2011-11-01Store the OCIDefine handle for LOB result parameters and reuse it on rebindingConstantin Michael1-1/+8
2011-11-01Correct placeholder variable type used in call to OCIAttrSetConstantin Michael1-2/+6
2011-11-01Implement change callbacks for object_result and view_resultConstantin Michael1-0/+91
2011-11-01Implement query image change callback machineryConstantin Michael1-0/+5
2011-10-20Aesthetic changesConstantin Michael1-2/+2
2011-10-20Use SQLT_NUM instead of SQLT_VNU OCI type due to inconsistent buffer lengthsConstantin Michael1-2/+2
The size returned by OCI into the bound rlen parameter of a SQLT_VNU buffer does not include the additional length byte. This causes problems with images that are shared across multiple statements in ODB, such as the object_id image of containers.
2011-10-20Do not throw on a unique constraint violation during an insertConstantin Michael1-1/+13
2011-10-20Correct bind offset error arising due to OCI using 1 based indicesConstantin Michael1-1/+1
2011-10-20Correct usage of details::buffer instance during callbacks and LOB streamingConstantin Michael1-9/+19
2011-10-17Allocate LOB manipulation buffer in connection instance instead of in imageConstantin Michael1-13/+23
2011-10-14Correct the LOB callback aspects of the bind mechanismConstantin Michael1-13/+12
The parameter callback context must be const qualified. This is both sensible and necessary to avoid unecessary casts in the generated code during image manipulation. The result callback context must not be const qualified as the result callback should be permitted to modify it. Both the callback and context members of the bind structure must be pointers to the relevant union types in order for the binding mechanism to work correctly.
2011-10-14Correct logic used to indicate exhaustion of query result dataConstantin Michael1-2/+4
2011-10-14Small bug fixes and aesthetic changesConstantin Michael1-8/+10
2011-10-14Const qualify buffer argument in parameter callback function signatureConstantin Michael1-1/+1
2011-10-14Adhere to OCI recommendations for unused arguments when binding callbacksConstantin Michael1-6/+7
2011-10-14Create separate OCI buffer type lookups for parameter and result buffersConstantin Michael1-6/+26
This is required due to the asymmetric manner in which LOB types are persisted to and loaded from the database.
2011-10-14Add a RAW buffer typeConstantin Michael1-12/+13
This is required as OCI performs character set specific operations on string data. RAW data has no associated character set.
2011-10-14Use an auto_descriptor pointer to manage a bound result LOBConstantin Michael1-1/+27
This simplifies resource management in the generated code.
2011-10-06Add commentsConstantin Michael1-0/+5
2011-09-29Add assertion for mismatch of result set column countConstantin Michael1-2/+14
This is useful for detecting native views that happen to have stray data members.
2011-09-29Implement custom bind buffer type identifiers.Constantin Michael1-11/+64
This allows for the association of a character set with a character data buffer, something that is impossible using only OCI external typecodes.
2011-09-27Add sanity check for integer buffer capacity in OCI versions earlier than 11.2Constantin Michael1-0/+20
2011-09-23Correct missing variable declarationConstantin Michael1-0/+1
2011-09-23Correct commentConstantin Michael1-4/+4
2011-09-21Improve LOB streaming in select statementConstantin Michael1-32/+10
Passing 0 as an initial read amount to OCILobRead2 initiates a continuous polling mode. Once the EOF has been read, OCILobRead2 will return indicating success.
2011-09-19Refactor stream_lobs so that base statement class does not maintain stateConstantin Michael1-22/+29
2011-09-16Allow select statement without parametersConstantin Michael1-1/+12
2011-09-16Corrections to LOB parameter and results callback implementationConstantin Michael1-122/+111
2011-09-14Corrections and additions to LOB parameter and results callback implementationConstantin Michael1-75/+134
2011-09-14Implement LOB result callbacks using OCI LOB interfaceConstantin Michael1-98/+145
2011-09-13Implement LOB read and write support using OCI callbacksConstantin Michael1-20/+140
2011-09-13Revert to previous select statement interfaceConstantin Michael1-14/+12
2011-09-08Implement SQLite style select statement interfaceConstantin Michael1-39/+32
2011-09-08Correct void* castsConstantin Michael1-5/+5
2011-09-08Rename RETURNING clause callbacksConstantin Michael1-19/+19
2011-09-08Cache error handles where necessaryConstantin Michael1-17/+28
2011-09-08Use OCI_STRLS_CACHE_DELETE release mode for select, insert, update, and deleteConstantin Michael1-1/+1
2011-09-08Correct OCI version detection macrosConstantin Michael1-7/+6
2011-09-08Rename insert_statement::id_bind_type union membersConstantin Michael1-6/+6
2011-09-08Add bind array offset argument to statement::bind_paramConstantin Michael1-6/+7
This allows for specification of non-contiguous bind arrays in multiple calls to bind_param for the same statement.
2011-09-07Add implementations for insert, update, delete, and select statementsConstantin Michael1-0/+444