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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
|
--- lib/odbx_impl.cpp.orig 2012-06-10 21:20:25 UTC
+++ lib/odbx_impl.cpp
@@ -29,7 +29,7 @@ namespace OpenDBX
* OpenDBX large object implementation
*/
- Lob_Impl::Lob_Impl( odbx_result_t* result, const char* value ) throw( std::exception )
+ Lob_Impl::Lob_Impl( odbx_result_t* result, const char* value ) noexcept(false)
{
int err;
@@ -52,7 +52,7 @@ namespace OpenDBX
- void Lob_Impl::close() throw( std::exception )
+ void Lob_Impl::close() noexcept(false)
{
int err;
@@ -66,7 +66,7 @@ namespace OpenDBX
- ssize_t Lob_Impl::read( void* buffer, size_t buflen ) throw( std::exception )
+ ssize_t Lob_Impl::read( void* buffer, size_t buflen ) noexcept(false)
{
ssize_t err;
@@ -80,7 +80,7 @@ namespace OpenDBX
- ssize_t Lob_Impl::write( void* buffer, size_t buflen ) throw( std::exception )
+ ssize_t Lob_Impl::write( void* buffer, size_t buflen ) noexcept(false)
{
ssize_t err;
@@ -102,7 +102,7 @@ namespace OpenDBX
- Result_Impl::Result_Impl( odbx_t* handle ) throw( std::exception )
+ Result_Impl::Result_Impl( odbx_t* handle ) noexcept(false)
{
m_handle = handle;
m_result = NULL;
@@ -121,7 +121,7 @@ namespace OpenDBX
- void Result_Impl::finish() throw( std::exception )
+ void Result_Impl::finish() noexcept(false)
{
odbxres res;
@@ -137,7 +137,7 @@ namespace OpenDBX
- odbxres Result_Impl::getResult( struct timeval* timeout, unsigned long chunk ) throw( std::exception )
+ odbxres Result_Impl::getResult( struct timeval* timeout, unsigned long chunk ) noexcept(false)
{
int err;
@@ -162,7 +162,7 @@ namespace OpenDBX
- odbxrow Result_Impl::getRow() throw( std::exception )
+ odbxrow Result_Impl::getRow() noexcept(false)
{
int err;
@@ -176,21 +176,21 @@ namespace OpenDBX
- uint64_t Result_Impl::rowsAffected() throw( std::exception )
+ uint64_t Result_Impl::rowsAffected() noexcept(false)
{
return odbx_rows_affected( m_result );
}
- unsigned long Result_Impl::columnCount() throw( std::exception )
+ unsigned long Result_Impl::columnCount() noexcept(false)
{
return odbx_column_count( m_result );
}
- unsigned long Result_Impl::columnPos( const string& name ) throw( std::exception )
+ unsigned long Result_Impl::columnPos( const string& name ) noexcept(false)
{
map<const string, unsigned long>::const_iterator it;
@@ -213,7 +213,7 @@ namespace OpenDBX
- const string Result_Impl::columnName( unsigned long pos ) throw( std::exception )
+ const string Result_Impl::columnName( unsigned long pos ) noexcept(false)
{
if( pos < odbx_column_count( m_result ) )
{
@@ -230,7 +230,7 @@ namespace OpenDBX
- odbxtype Result_Impl::columnType( unsigned long pos ) throw( std::exception )
+ odbxtype Result_Impl::columnType( unsigned long pos ) noexcept(false)
{
if( pos < odbx_column_count( m_result ) )
{
@@ -242,7 +242,7 @@ namespace OpenDBX
- unsigned long Result_Impl::fieldLength( unsigned long pos ) throw( std::exception )
+ unsigned long Result_Impl::fieldLength( unsigned long pos ) noexcept(false)
{
if( pos < odbx_column_count( m_result ) )
{
@@ -254,7 +254,7 @@ namespace OpenDBX
- const char* Result_Impl::fieldValue( unsigned long pos ) throw( std::exception )
+ const char* Result_Impl::fieldValue( unsigned long pos ) noexcept(false)
{
if( pos < odbx_column_count( m_result ) )
{
@@ -265,7 +265,7 @@ namespace OpenDBX
}
- Lob_Iface* Result_Impl::getLob( const char* value ) throw( std::exception )
+ Lob_Iface* Result_Impl::getLob( const char* value ) noexcept(false)
{
return new Lob_Impl( m_result, value );
}
@@ -280,7 +280,7 @@ namespace OpenDBX
- Stmt_Impl::Stmt_Impl( odbx_t* handle ) throw( std::exception )
+ Stmt_Impl::Stmt_Impl( odbx_t* handle ) noexcept(false)
{
m_handle = handle;
}
@@ -301,7 +301,7 @@ namespace OpenDBX
- StmtSimple_Impl::StmtSimple_Impl( odbx_t* handle, const string& sql ) throw( std::exception ) : Stmt_Impl( handle )
+ StmtSimple_Impl::StmtSimple_Impl( odbx_t* handle, const string& sql ) noexcept(false) : Stmt_Impl( handle )
{
m_sql = sql;
/* m_buffer = NULL;
@@ -326,7 +326,7 @@ namespace OpenDBX
- StmtSimple_Impl::StmtSimple_Impl() throw( std::exception ) : Stmt_Impl( NULL )
+ StmtSimple_Impl::StmtSimple_Impl() noexcept(false) : Stmt_Impl( NULL )
{
// m_buffer = NULL;
// m_bufsize = 0;
@@ -365,7 +365,7 @@ namespace OpenDBX
- Result_Iface* StmtSimple_Impl::execute() throw( std::exception )
+ Result_Iface* StmtSimple_Impl::execute() noexcept(false)
{
// if( m_binds.size() ) { _exec_params(); }
// else { _exec_noparams(); }
@@ -377,7 +377,7 @@ namespace OpenDBX
- inline void StmtSimple_Impl::_exec_noparams() throw( std::exception )
+ inline void StmtSimple_Impl::_exec_noparams() noexcept(false)
{
int err;
@@ -452,7 +452,7 @@ namespace OpenDBX
- Conn_Impl::Conn_Impl( const char* backend, const char* host, const char* port ) throw( std::exception )
+ Conn_Impl::Conn_Impl( const char* backend, const char* host, const char* port ) noexcept(false)
{
int err;
@@ -480,7 +480,7 @@ namespace OpenDBX
- void Conn_Impl::bind( const char* database, const char* who, const char* cred, odbxbind method ) throw( std::exception )
+ void Conn_Impl::bind( const char* database, const char* who, const char* cred, odbxbind method ) noexcept(false)
{
int err;
@@ -494,7 +494,7 @@ namespace OpenDBX
- void Conn_Impl::unbind() throw( std::exception )
+ void Conn_Impl::unbind() noexcept(false)
{
int err;
@@ -508,7 +508,7 @@ namespace OpenDBX
- void Conn_Impl::finish() throw( std::exception )
+ void Conn_Impl::finish() noexcept(false)
{
int err;
@@ -528,7 +528,7 @@ namespace OpenDBX
- bool Conn_Impl::getCapability( odbxcap cap ) throw( std::exception )
+ bool Conn_Impl::getCapability( odbxcap cap ) noexcept(false)
{
int err = odbx_capabilities( m_handle, (unsigned int) cap );
@@ -545,7 +545,7 @@ namespace OpenDBX
- void Conn_Impl::getOption( odbxopt option, void* value ) throw( std::exception )
+ void Conn_Impl::getOption( odbxopt option, void* value ) noexcept(false)
{
int err;
@@ -557,7 +557,7 @@ namespace OpenDBX
- void Conn_Impl::setOption( odbxopt option, void* value ) throw( std::exception )
+ void Conn_Impl::setOption( odbxopt option, void* value ) noexcept(false)
{
int err;
@@ -569,7 +569,7 @@ namespace OpenDBX
- string& Conn_Impl::escape( const char* from, unsigned long fromlen, string& to ) throw( std::exception )
+ string& Conn_Impl::escape( const char* from, unsigned long fromlen, string& to ) noexcept(false)
{
int err;
unsigned long size = m_escsize;
@@ -594,7 +594,7 @@ namespace OpenDBX
- Stmt_Iface* Conn_Impl::create( const string& sql, Stmt::Type type ) throw( std::exception )
+ Stmt_Iface* Conn_Impl::create( const string& sql, Stmt::Type type ) noexcept(false)
{
switch( type )
{
@@ -607,7 +607,7 @@ namespace OpenDBX
- inline char* Conn_Impl::_resize( char* buffer, size_t size ) throw( std::exception )
+ inline char* Conn_Impl::_resize( char* buffer, size_t size ) noexcept(false)
{
if( ( buffer = (char*) std::realloc( buffer, size ) ) == NULL )
{
|