summaryrefslogtreecommitdiff
path: root/databases/opendbx/files/patch-lib_odbx.cpp
blob: 339712693da07a2892910f19a1508c4719172402 (plain) (blame)
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
--- lib/odbx.cpp.orig	2010-08-01 02:08:41 UTC
+++ lib/odbx.cpp
@@ -54,7 +54,7 @@ namespace OpenDBX
 	*  OpenDBX large object interface
 	*/
 
-	Lob::Lob( Lob_Iface* impl ) throw( std::exception )
+	Lob::Lob( Lob_Iface* impl ) noexcept(false)
 	{
 		m_impl = impl;
 		m_ref = new int;
@@ -114,21 +114,21 @@ namespace OpenDBX
 
 
 
-	void Lob::close() throw( std::exception )
+	void Lob::close() noexcept(false)
 	{
 		return m_impl->close();
 	}
 
 
 
-	ssize_t Lob::read( void* buffer, size_t buflen ) throw( std::exception )
+	ssize_t Lob::read( void* buffer, size_t buflen ) noexcept(false)
 	{
 		return m_impl->read( buffer, buflen );
 	}
 
 
 
-	ssize_t Lob::write( void* buffer, size_t buflen ) throw( std::exception )
+	ssize_t Lob::write( void* buffer, size_t buflen ) noexcept(false)
 	{
 		return m_impl->write( buffer, buflen );
 	}
@@ -143,7 +143,7 @@ namespace OpenDBX
 
 
 
-	Result::Result( Result_Iface* impl ) throw( std::exception )
+	Result::Result( Result_Iface* impl ) noexcept(false)
 	{
 		m_impl = impl;
 		m_ref = new int;
@@ -204,76 +204,76 @@ namespace OpenDBX
 
 
 
-	void Result::finish() throw( std::exception )
+	void Result::finish() noexcept(false)
 	{
 		return m_impl->finish();
 	}
 
 
 
-	odbxres Result::getResult( struct timeval* timeout, unsigned long chunk ) throw( std::exception )
+	odbxres Result::getResult( struct timeval* timeout, unsigned long chunk ) noexcept(false)
 	{
 		return m_impl->getResult( timeout, chunk );
 	}
 
 
 
-	odbxrow Result::getRow() throw( std::exception )
+	odbxrow Result::getRow() noexcept(false)
 	{
 		return m_impl->getRow();
 	}
 
 
 
-	uint64_t Result::rowsAffected() throw( std::exception )
+	uint64_t Result::rowsAffected() noexcept(false)
 	{
 		return m_impl->rowsAffected();
 	}
 
 
 
-	unsigned long Result::columnCount() throw( std::exception )
+	unsigned long Result::columnCount() noexcept(false)
 	{
 		return m_impl->columnCount();
 	}
 
 
 
-	unsigned long Result::columnPos( const string& name ) throw( std::exception )
+	unsigned long Result::columnPos( const string& name ) noexcept(false)
 	{
 		return m_impl->columnPos( name );
 	}
 
 
 
-	const string Result::columnName( unsigned long pos ) throw( std::exception )
+	const string Result::columnName( unsigned long pos ) noexcept(false)
 	{
 		return m_impl->columnName( pos );
 	}
 
 
 
-	odbxtype Result::columnType( unsigned long pos ) throw( std::exception )
+	odbxtype Result::columnType( unsigned long pos ) noexcept(false)
 	{
 		return m_impl->columnType( pos );
 	}
 
 
 
-	unsigned long Result::fieldLength( unsigned long pos ) throw( std::exception )
+	unsigned long Result::fieldLength( unsigned long pos ) noexcept(false)
 	{
 		return m_impl->fieldLength( pos );
 	}
 
 
 
-	const char* Result::fieldValue( unsigned long pos ) throw( std::exception )
+	const char* Result::fieldValue( unsigned long pos ) noexcept(false)
 	{
 		return m_impl->fieldValue( pos );
 	}
 
 
-	Lob Result::getLob( const char* value ) throw( std::exception )
+	Lob Result::getLob( const char* value ) noexcept(false)
 	{
 		return m_impl->getLob( value );
 	}
@@ -288,7 +288,7 @@ namespace OpenDBX
 
 
 
-	Stmt::Stmt( Stmt_Iface* impl ) throw( std::exception )
+	Stmt::Stmt( Stmt_Iface* impl ) noexcept(false)
 	{
 		m_impl = impl;
 		m_ref = new int;
@@ -363,7 +363,7 @@ namespace OpenDBX
 
 
 
-	Result Stmt::execute() throw( std::exception )
+	Result Stmt::execute() noexcept(false)
 	{
 		return Result( m_impl->execute() );
 	}
@@ -384,7 +384,7 @@ namespace OpenDBX
 	}
 
 
-	Conn::Conn( const char* backend, const char* host, const char* port ) throw( std::exception )
+	Conn::Conn( const char* backend, const char* host, const char* port ) noexcept(false)
 	{
 		m_impl = new Conn_Impl( backend, host, port );
 		m_ref = new int;
@@ -393,7 +393,7 @@ namespace OpenDBX
 	}
 
 
-	Conn::Conn( const string& backend, const string& host, const string& port ) throw( std::exception )
+	Conn::Conn( const string& backend, const string& host, const string& port ) noexcept(false)
 	{
 		m_impl = new Conn_Impl( backend.c_str(), host.c_str(), port.c_str() );
 		m_ref = new int;
@@ -454,7 +454,7 @@ namespace OpenDBX
 
 
 
-	void Conn::bind( const char* database, const char* who, const char* cred, odbxbind method ) throw( std::exception )
+	void Conn::bind( const char* database, const char* who, const char* cred, odbxbind method ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -466,7 +466,7 @@ namespace OpenDBX
 
 
 
-	void Conn::bind( const string& database, const string& who, const string& cred, odbxbind method ) throw( std::exception )
+	void Conn::bind( const string& database, const string& who, const string& cred, odbxbind method ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -478,7 +478,7 @@ namespace OpenDBX
 
 
 
-	void Conn::unbind() throw( std::exception )
+	void Conn::unbind() noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -490,7 +490,7 @@ namespace OpenDBX
 
 
 
-	void Conn::finish() throw( std::exception )
+	void Conn::finish() noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -502,7 +502,7 @@ namespace OpenDBX
 
 
 
-	bool Conn::getCapability( odbxcap cap ) throw( std::exception )
+	bool Conn::getCapability( odbxcap cap ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -514,7 +514,7 @@ namespace OpenDBX
 
 
 
-	void Conn::getOption( odbxopt option, void* value ) throw( std::exception )
+	void Conn::getOption( odbxopt option, void* value ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -526,7 +526,7 @@ namespace OpenDBX
 
 
 
-	void Conn::setOption( odbxopt option, void* value ) throw( std::exception )
+	void Conn::setOption( odbxopt option, void* value ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -538,7 +538,7 @@ namespace OpenDBX
 
 
 
-	string& Conn::escape( const string& from, string& to ) throw( std::exception )
+	string& Conn::escape( const string& from, string& to ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -550,7 +550,7 @@ namespace OpenDBX
 
 
 
-	string& Conn::escape( const char* from, unsigned long fromlen, string& to ) throw( std::exception )
+	string& Conn::escape( const char* from, unsigned long fromlen, string& to ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{
@@ -562,7 +562,7 @@ namespace OpenDBX
 
 
 
-	Stmt Conn::create( const char* sql, unsigned long length, Stmt::Type type ) throw( std::exception )
+	Stmt Conn::create( const char* sql, unsigned long length, Stmt::Type type ) noexcept(false)
 	{
 		if( length == 0 ) { length = (unsigned long) strlen( sql ); }
 
@@ -571,7 +571,7 @@ namespace OpenDBX
 
 
 
-	Stmt Conn::create( const string& sql, Stmt::Type type ) throw( std::exception )
+	Stmt Conn::create( const string& sql, Stmt::Type type ) noexcept(false)
 	{
 		if( m_impl == NULL )
 		{