summaryrefslogtreecommitdiff
path: root/qt/oracle/basic/test.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-11-30 16:05:52 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-11-30 16:16:43 +0200
commit72ad2f40da8268326bcbf4fc0d230860a8b05581 (patch)
tree8f7f4fd10b3658dbeeb4dbc84c9abfbfaa4da257 /qt/oracle/basic/test.hxx
parent44cb5422ce125f356b9f6c87f4ef372d9d693fb1 (diff)
Add tests for QString NCHAR and NVARCHAR2 mapping
Diffstat (limited to 'qt/oracle/basic/test.hxx')
-rw-r--r--qt/oracle/basic/test.hxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/qt/oracle/basic/test.hxx b/qt/oracle/basic/test.hxx
index 979e11f..6a3e788 100644
--- a/qt/oracle/basic/test.hxx
+++ b/qt/oracle/basic/test.hxx
@@ -16,7 +16,10 @@ struct object
operator== (const object& x) const
{
return
- varchar == x.varchar &&
+ varchar2 == x.varchar2 &&
+ char_ == x.char_ &&
+ nchar == x.nchar &&
+ nvarchar2 == x.nvarchar2 &&
clob == x.clob &&
nclob == x.nclob &&
blob == x.blob &&
@@ -24,7 +27,16 @@ struct object
}
#pragma db id
- QString varchar;
+ QString varchar2;
+
+ #pragma db type ("CHAR(13)")
+ QString char_;
+
+ #pragma db type ("NCHAR(13)")
+ QString nchar;
+
+ #pragma db type ("NVARCHAR2(512)")
+ QString nvarchar2;
#pragma db type ("CLOB")
QString clob;