blob: 6a3e788547cdf13392fb5c4ab040b48b212b4427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// file : qt/oracle/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
varchar2 == x.varchar2 &&
char_ == x.char_ &&
nchar == x.nchar &&
nvarchar2 == x.nvarchar2 &&
clob == x.clob &&
nclob == x.nclob &&
blob == x.blob &&
raw == x.raw;
}
#pragma db id
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;
#pragma db type ("NCLOB")
QString nclob;
QByteArray blob;
#pragma db type ("RAW(128)")
QByteArray raw;
};
#endif // TEST_HXX
|