File tree Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Expand file tree Collapse file tree 5 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,10 @@ class PreparedStatement : public Statement
90
90
91
91
virtual void setString (unsigned int parameterIndex, const sql::SQLString& value) = 0;
92
92
93
+ virtual PreparedStatement * setResultSetType (sql::ResultSet::enum_type type) = 0;
94
+
93
95
virtual void setVector (unsigned int parameterIndex, const std::vector<float >& value) = 0;
94
96
95
- virtual PreparedStatement * setResultSetType (sql::ResultSet::enum_type type) = 0;
96
97
};
97
98
98
99
Original file line number Diff line number Diff line change @@ -138,9 +138,6 @@ class ResultSet
138
138
virtual SQLString getString (uint32_t columnIndex) const = 0;
139
139
virtual SQLString getString (const sql::SQLString& columnLabel) const = 0;
140
140
141
- virtual std::vector<float > getVector (uint32_t columnIndex) const = 0;
142
- virtual std::vector<float > getVector (const sql::SQLString &columnLabel) const = 0;
143
-
144
141
virtual enum_type getType () const = 0;
145
142
146
143
virtual void getWarnings () = 0;
@@ -185,6 +182,9 @@ class ResultSet
185
182
virtual size_t rowsCount () const = 0;
186
183
187
184
virtual bool wasNull () const = 0;
185
+
186
+ virtual std::vector<float > getVector (uint32_t columnIndex) const = 0;
187
+ virtual std::vector<float > getVector (const sql::SQLString &columnLabel) const = 0;
188
188
};
189
189
190
190
} /* namespace sql */
Original file line number Diff line number Diff line change @@ -194,9 +194,6 @@ class MySQL_Prepared_Statement : public sql::PreparedStatement
194
194
void setString (unsigned int parameterIndex,
195
195
const sql::SQLString &value) override ;
196
196
197
- void setVector (unsigned int parameterIndex,
198
- const std::vector<float > &vec) override ;
199
-
200
197
void setQueryTimeout (unsigned int seconds) override ;
201
198
202
199
sql::PreparedStatement *setResultSetType (
@@ -225,6 +222,12 @@ class MySQL_Prepared_Statement : public sql::PreparedStatement
225
222
226
223
// For internal use
227
224
sql::ResultSet *_getResultSet ();
225
+
226
+ public:
227
+
228
+ void setVector (unsigned int parameterIndex,
229
+ const std::vector<float > &vec) override ;
230
+
228
231
};
229
232
230
233
} /* namespace mysql */
Original file line number Diff line number Diff line change @@ -158,9 +158,6 @@ class MySQL_Prepared_ResultSet : public sql::ResultSet
158
158
SQLString getString (uint32_t columnIndex) const ;
159
159
SQLString getString (const sql::SQLString &columnLabel) const ;
160
160
161
- std::vector<float > getVector (uint32_t columnIndex) const ;
162
- std::vector<float > getVector (const sql::SQLString &columnLabel) const ;
163
-
164
161
sql::ResultSet::enum_type getType () const ;
165
162
166
163
void getWarnings ();
@@ -206,6 +203,9 @@ class MySQL_Prepared_ResultSet : public sql::ResultSet
206
203
void setFetchSize (size_t rows);
207
204
208
205
bool wasNull () const ;
206
+
207
+ std::vector<float > getVector (uint32_t columnIndex) const ;
208
+ std::vector<float > getVector (const sql::SQLString &columnLabel) const ;
209
209
};
210
210
211
211
} /* namespace mysql*/
Original file line number Diff line number Diff line change @@ -157,9 +157,6 @@ class MySQL_ResultSet : public sql::ResultSet
157
157
SQLString getString (uint32_t columnIndex) const ;
158
158
SQLString getString (const sql::SQLString &columnLabel) const ;
159
159
160
- std::vector<float > getVector (uint32_t columnIndex) const ;
161
- std::vector<float > getVector (const sql::SQLString &columnLabel) const ;
162
-
163
160
sql::ResultSet::enum_type getType () const ;
164
161
165
162
void getWarnings ();
@@ -205,10 +202,17 @@ class MySQL_ResultSet : public sql::ResultSet
205
202
void setFetchSize (size_t rows);
206
203
207
204
bool wasNull () const ;
205
+
208
206
private:
209
207
/* Prevent use of these */
210
208
MySQL_ResultSet (const MySQL_ResultSet &);
211
209
void operator =(MySQL_ResultSet &);
210
+
211
+ public:
212
+
213
+ std::vector<float > getVector (uint32_t columnIndex) const ;
214
+ std::vector<float > getVector (const sql::SQLString &columnLabel) const ;
215
+
212
216
};
213
217
214
218
} /* namespace mysql */
You can’t perform that action at this time.
0 commit comments