I need to query a CLOB field from a database table. How can I do that in QIE.
Here is an example:
Table:
CREATE TABLE books (
id INT NOT NULL,
subject VARCHAR(50) NOT NULL,
text CLOB,
);
When query it with the following:
var queryResult = qie.doQuery(
"books",
"select id, subject, text from books");
qie.debug('id: ' + queryResult.getNode('id'));
qie.debug('subject: ' + queryResult.getNode('subject'));
qie.debug('text: ' + queryResult.getNode('text'));
I get these results when the CLOB field has a small amount of text:
id: 1
subject: short
text: clob26: 'some text'
And this when the CLOB contains a lot of text:
id: 1
subject: short
text: SPACE(4189 /* table: 14 id: 1 */)
How can I get the contained text using QIE?