aboutsummaryrefslogtreecommitdiff
path: root/qt/oracle/basic/test.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-15 12:04:57 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-16 11:25:05 +0200
commit7b6ace8f265e12704cc1d7e0c6f26dfe51ea2809 (patch)
tree9a225b06e2938f487fb9ec90ca4dcd40698260ab /qt/oracle/basic/test.hxx
parent1792e4f1aba7a60ae4ae6a227982da5459d34cfc (diff)
Add tests for Oracle LOB support of QByteArray and QString
Diffstat (limited to 'qt/oracle/basic/test.hxx')
-rw-r--r--qt/oracle/basic/test.hxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/qt/oracle/basic/test.hxx b/qt/oracle/basic/test.hxx
index 25710c0..979e11f 100644
--- a/qt/oracle/basic/test.hxx
+++ b/qt/oracle/basic/test.hxx
@@ -16,14 +16,26 @@ struct object
operator== (const object& x) const
{
return
- str == x.str &&
- blob == x.blob;
+ varchar == x.varchar &&
+ clob == x.clob &&
+ nclob == x.nclob &&
+ blob == x.blob &&
+ raw == x.raw;
}
#pragma db id
- QString str;
+ QString varchar;
+
+ #pragma db type ("CLOB")
+ QString clob;
+
+ #pragma db type ("NCLOB")
+ QString nclob;
QByteArray blob;
+
+ #pragma db type ("RAW(128)")
+ QByteArray raw;
};
#endif // TEST_HXX