summaryrefslogtreecommitdiff
path: root/databases/opendbx/files/patch-lib_odbx__impl.hpp
blob: 5e6c0d94f9e7f293441eea0820130ae9d227b32e (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
--- lib/odbx_impl.hpp.orig	2010-08-01 02:08:41 UTC
+++ lib/odbx_impl.hpp
@@ -37,13 +37,13 @@ namespace OpenDBX
 
 	public:
 
-		Lob_Impl( odbx_result_t* result, const char* value ) throw( std::exception );
+		Lob_Impl( odbx_result_t* result, const char* value ) noexcept(false);
 		~Lob_Impl() throw();
 
-		void close() throw( std::exception );
+		void close() noexcept(false);
 
-		ssize_t read( void* buffer, size_t buflen ) throw( std::exception );
-		ssize_t write( void* buffer, size_t buflen ) throw( std::exception );
+		ssize_t read( void* buffer, size_t buflen ) noexcept(false);
+		ssize_t write( void* buffer, size_t buflen ) noexcept(false);
 	};
 
 
@@ -56,25 +56,25 @@ namespace OpenDBX
 
 	public:
 
-		Result_Impl( odbx_t* handle ) throw( std::exception );
+		Result_Impl( odbx_t* handle ) noexcept(false);
 		~Result_Impl() throw();
 
-		void finish() throw( std::exception );
+		void finish() noexcept(false);
 
-		odbxres getResult( struct timeval* timeout, unsigned long chunk ) throw( std::exception );
+		odbxres getResult( struct timeval* timeout, unsigned long chunk ) noexcept(false);
 
-		odbxrow getRow() throw( std::exception );
-		uint64_t rowsAffected() throw( std::exception );
+		odbxrow getRow() noexcept(false);
+		uint64_t rowsAffected() noexcept(false);
 
-		unsigned long columnCount() throw( std::exception );
-		unsigned long columnPos( const string& name ) throw( std::exception );
-		const string columnName( unsigned long pos ) throw( std::exception );
-		odbxtype columnType( unsigned long pos ) throw( std::exception );
+		unsigned long columnCount() noexcept(false);
+		unsigned long columnPos( const string& name ) noexcept(false);
+		const string columnName( unsigned long pos ) noexcept(false);
+		odbxtype columnType( unsigned long pos ) noexcept(false);
 
-		unsigned long fieldLength( unsigned long pos ) throw( std::exception );
-		const char* fieldValue( unsigned long pos ) throw( std::exception );
+		unsigned long fieldLength( unsigned long pos ) noexcept(false);
+		const char* fieldValue( unsigned long pos ) noexcept(false);
 
-		Lob_Iface* getLob( const char* value ) throw( std::exception );
+		Lob_Iface* getLob( const char* value ) noexcept(false);
 	};
 
 
@@ -89,7 +89,7 @@ namespace OpenDBX
 
 	public:
 
-		Stmt_Impl( odbx_t* handle ) throw( std::exception );
+		Stmt_Impl( odbx_t* handle ) noexcept(false);
 	};
 
 
@@ -106,19 +106,19 @@ namespace OpenDBX
 
 	protected:
 
-// 		inline void _exec_params() throw( std::exception );
-		inline void _exec_noparams() throw( std::exception );
+// 		inline void _exec_params() noexcept(false);
+		inline void _exec_noparams() noexcept(false);
 
 	public:
 
-		StmtSimple_Impl( odbx_t* handle, const string& sql ) throw( std::exception );
-		StmtSimple_Impl() throw( std::exception );
+		StmtSimple_Impl( odbx_t* handle, const string& sql ) noexcept(false);
+		StmtSimple_Impl() noexcept(false);
 		~StmtSimple_Impl() throw();
 
 // 		void bind( const void* data, unsigned long size, size_t pos, int flags );
 // 		size_t count();
 
-		Result_Iface* execute() throw( std::exception );
+		Result_Iface* execute() noexcept(false);
 	};
 
 
@@ -132,25 +132,25 @@ namespace OpenDBX
 
 	protected:
 
-		inline char* _resize( char* buffer, size_t size ) throw( std::exception );
+		inline char* _resize( char* buffer, size_t size ) noexcept(false);
 
 	public:
 
-		Conn_Impl( const char* backend, const char* host, const char* port ) throw( std::exception );
+		Conn_Impl( const char* backend, const char* host, const char* port ) noexcept(false);
 		~Conn_Impl() throw();
-		void finish() throw( std::exception );
+		void finish() noexcept(false);
 
-		void bind( const char* database, const char* who, const char* cred, odbxbind method = ODBX_BIND_SIMPLE ) throw( std::exception );
-		void unbind() throw( std::exception );
+		void bind( const char* database, const char* who, const char* cred, odbxbind method = ODBX_BIND_SIMPLE ) noexcept(false);
+		void unbind() noexcept(false);
 
-		bool getCapability( odbxcap cap ) throw( std::exception );
+		bool getCapability( odbxcap cap ) noexcept(false);
 
-		void getOption( odbxopt option, void* value ) throw( std::exception );
-		void setOption( odbxopt option, void* value ) throw( std::exception );
+		void getOption( odbxopt option, void* value ) noexcept(false);
+		void setOption( odbxopt option, void* value ) noexcept(false);
 
-		string& escape( const char* from, unsigned long fromlen, string& to ) throw( std::exception );
+		string& escape( const char* from, unsigned long fromlen, string& to ) noexcept(false);
 
-		Stmt_Iface* create( const string& sql, Stmt::Type type ) throw( std::exception );
+		Stmt_Iface* create( const string& sql, Stmt::Type type ) noexcept(false);
 	};
 
 }   // namespace