1 | // |
2 | // Extractor.cpp |
3 | // |
4 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
5 | // and Contributors. |
6 | // |
7 | // SPDX-License-Identifier: BSL-1.0 |
8 | // |
9 | |
10 | |
11 | #include "Extractor.h" |
12 | #include "Poco/SQL/LOB.h" |
13 | #include "Poco/Exception.h" |
14 | |
15 | |
16 | namespace Poco { |
17 | namespace SQL { |
18 | namespace Test { |
19 | |
20 | |
21 | Extractor::() |
22 | { |
23 | } |
24 | |
25 | |
26 | Extractor::() |
27 | { |
28 | } |
29 | |
30 | |
31 | bool Extractor::(std::size_t pos, Poco::Int8& val) |
32 | { |
33 | val = 0; |
34 | return true; |
35 | } |
36 | |
37 | |
38 | bool Extractor::(std::size_t pos, Poco::UInt8& val) |
39 | { |
40 | val = 0; |
41 | return true; |
42 | } |
43 | |
44 | |
45 | bool Extractor::(std::size_t pos, Poco::Int16& val) |
46 | { |
47 | val = 0; |
48 | return true; |
49 | } |
50 | |
51 | |
52 | bool Extractor::(std::size_t pos, Poco::UInt16& val) |
53 | { |
54 | val = 0; |
55 | return true; |
56 | } |
57 | |
58 | |
59 | bool Extractor::(std::size_t pos, Poco::Int32& val) |
60 | { |
61 | val = 0; |
62 | return true; |
63 | } |
64 | |
65 | |
66 | bool Extractor::(std::size_t pos, Poco::UInt32& val) |
67 | { |
68 | val = 0; |
69 | return true; |
70 | } |
71 | |
72 | |
73 | bool Extractor::(std::size_t pos, Poco::Int64& val) |
74 | { |
75 | val = 0; |
76 | return true; |
77 | } |
78 | |
79 | |
80 | #ifndef POCO_LONG_IS_64_BIT |
81 | bool Extractor::extract(std::size_t pos, long& val) |
82 | { |
83 | val = 0; |
84 | return true; |
85 | } |
86 | |
87 | |
88 | bool Extractor::extract(std::size_t pos, unsigned long& val) |
89 | { |
90 | val = 0; |
91 | return true; |
92 | } |
93 | #endif |
94 | |
95 | |
96 | bool Extractor::(std::size_t pos, Poco::UInt64& val) |
97 | { |
98 | val = 0; |
99 | return true; |
100 | } |
101 | |
102 | |
103 | bool Extractor::(std::size_t pos, bool& val) |
104 | { |
105 | val = false; |
106 | return true; |
107 | } |
108 | |
109 | |
110 | bool Extractor::(std::size_t pos, float& val) |
111 | { |
112 | val = 0; |
113 | return true; |
114 | } |
115 | |
116 | |
117 | bool Extractor::(std::size_t pos, double& val) |
118 | { |
119 | val = 0; |
120 | return true; |
121 | } |
122 | |
123 | |
124 | bool Extractor::(std::size_t pos, char& val) |
125 | { |
126 | val = '\0'; |
127 | return true; |
128 | } |
129 | |
130 | |
131 | bool Extractor::(std::size_t pos, std::string& val) |
132 | { |
133 | val = "" ; |
134 | return true; |
135 | } |
136 | |
137 | |
138 | bool Extractor::(std::size_t pos, Poco::UTF16String& val) |
139 | { |
140 | std::string str("" ); |
141 | Poco::UnicodeConverter::convert(str, val); |
142 | return true; |
143 | } |
144 | |
145 | |
146 | bool Extractor::(std::size_t pos, Poco::SQL::BLOB& val) |
147 | { |
148 | return true; |
149 | } |
150 | |
151 | |
152 | bool Extractor::(std::size_t pos, Poco::SQL::CLOB& val) |
153 | { |
154 | return true; |
155 | } |
156 | |
157 | bool Extractor::(std::size_t pos, Poco::SQL::Date& val) |
158 | { |
159 | return true; |
160 | } |
161 | |
162 | |
163 | bool Extractor::(std::size_t pos, Poco::SQL::Time& val) |
164 | { |
165 | return true; |
166 | } |
167 | |
168 | |
169 | |
170 | bool Extractor::(std::size_t pos, Poco::DateTime& val) |
171 | { |
172 | return true; |
173 | } |
174 | |
175 | |
176 | bool Extractor::(std::size_t pos, Poco::Any& val) |
177 | { |
178 | return true; |
179 | } |
180 | |
181 | |
182 | bool Extractor::(std::size_t pos, Poco::Dynamic::Var& val) |
183 | { |
184 | return true; |
185 | } |
186 | |
187 | |
188 | } } } // namespace Poco::SQL::Test |
189 | |