aboutsummaryrefslogtreecommitdiff
path: root/mssql/query/test.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'mssql/query/test.hxx')
-rw-r--r--mssql/query/test.hxx40
1 files changed, 40 insertions, 0 deletions
diff --git a/mssql/query/test.hxx b/mssql/query/test.hxx
new file mode 100644
index 0000000..964d893
--- /dev/null
+++ b/mssql/query/test.hxx
@@ -0,0 +1,40 @@
+// file : mssql/query/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 <string>
+
+#include <odb/core.hxx>
+
+#pragma db object
+struct object
+{
+ #pragma db id auto
+ unsigned long id_;
+
+ unsigned int num;
+
+ #pragma db type ("SMALLMONEY")
+ int smoney;
+
+ #pragma db type ("MONEY")
+ double money;
+
+ #pragma db type ("VARCHAR(256)")
+ std::string str;
+
+ #pragma db type ("NVARCHAR(128)")
+ std::wstring nstr;
+
+ #pragma db type ("VARCHAR(max)")
+ std::string lstr;
+
+ #pragma db type ("NVARCHAR(max)")
+ std::wstring lnstr;
+};
+
+#endif // TEST_HXX