Replies: 5 comments 1 reply
-
Hi, A Column object only exists in the context of the component that returned it (resultset, typeinfo) as it holds a transient handle that is owned elsewhere. Regards, Vincent |
Beta Was this translation helpful? Give feedback.
-
hi,
so i have to go the scrollable way or drop that feature. any chance for a feature-request ? :p thanks®ards, |
Beta Was this translation helpful? Give feedback.
-
I might not completely understand your issue. Adding a default constructor to Column object would not help at all for your delayed data retrieval issue. You issue is about 1) storing metadata on the column type or 2) display the content of a given column row later on ? Vincent |
Beta Was this translation helpful? Give feedback.
-
Uhm, That may be the output of an user query, the user double clicks on either a NUMBER, CHAR or VARCHAR row - i can display the content in a popup because i have this content already in the datagrid. But for *LOB columns i need to fetch the content at the moment the user clicks on the column (in the example row5, column content_clob). So iguess i must use scrollable cursors to do a seek back to row 5 like you mentioned in your 1st reply...correct ? gerald |
Beta Was this translation helpful? Give feedback.
-
Good :) Vincent |
Beta Was this translation helpful? Give feedback.
-
Hi,
as the title says - is there a reason why there is no public constructor for the column class?
Reason: i try to put the column into a (Qt) QVariant and read the Column back in another part of the program (for this i need to declare a Metatype with Q_DECLARE_METATYPE and for this a default /copy constructor are needed (https://doc.qt.io/qt-6/qmetatype.html#Q_DECLARE_METATYPE))
Background:
I build some lightweight IDE - this contains a datagrid for the output of queries. If someone clicks on e.g. a VARCHAR2 column, i open a hexeditor to display the contents. This works for data types like number, varchar2 because i put the content of the columns in my own (custom-)recordset during the loop. For CLOB columns, i don't have the content in the recordset (does not make any sense to fetch all *LOB column content), so i need a way to read the content on demand. A way to put
ocilib::Column col = rs.GetColumn(col);
"col" "somewhere" for a possible later processing.
I don't know if that makes any sense...
(and my c++ skills are not enough yet to figure this out)
regards
Beta Was this translation helpful? Give feedback.
All reactions