From 72ad2f40da8268326bcbf4fc0d230860a8b05581 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Wed, 30 Nov 2011 16:05:52 +0200 Subject: Add tests for QString NCHAR and NVARCHAR2 mapping --- qt/oracle/basic/test.hxx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'qt/oracle/basic/test.hxx') 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; -- cgit v1.1