diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-14 12:52:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:45:46 +0200 |
commit | fb3f565e804603c66457514e20018434c989883e (patch) | |
tree | a983ef53d6ab12a3075f62cd6bfbd9426d45f3d0 /qt/mssql/basic/test.hxx | |
parent | 0da5345276f1e655e5e099fdf6280466e3a5dda4 (diff) |
Basic Qt profile implementation for SQL Server
Diffstat (limited to 'qt/mssql/basic/test.hxx')
-rw-r--r-- | qt/mssql/basic/test.hxx | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/qt/mssql/basic/test.hxx b/qt/mssql/basic/test.hxx new file mode 100644 index 0000000..245d1ee --- /dev/null +++ b/qt/mssql/basic/test.hxx @@ -0,0 +1,48 @@ +// file : qt/mssql/basic/test.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include <QtCore/QString> +#include <QtCore/QByteArray> + +#pragma db object +struct object +{ + bool + operator== (const object& x) const + { + return + id_ == x.id_ && + sstr_ == x.sstr_ && + lstr_ == x.lstr_ && + snstr_ == x.snstr_ && + lnstr_ == x.lnstr_ && + sbuf_ == x.sbuf_ && + lbuf_ == x.lbuf_; + } + + #pragma db id + QString id_; + + QString sstr_; + + #pragma db type ("VARCHAR(max)") + QString lstr_; + + #pragma db type ("NVARCHAR(512)") + QString snstr_; + + #pragma db type ("NVARCHAR(max)") + QString lnstr_; + + #pragma db type ("VARBINARY(512)") + QByteArray sbuf_; + + QByteArray lbuf_; +}; + +#endif // TEST_HXX |