1
1
/* ***********************************************************************************
2
- Copyright (C) 2020 MariaDB Corporation AB
2
+ Copyright (C) 2020, 2025 MariaDB Corporation plc
3
3
4
4
This library is free software; you can redistribute it and/or
5
5
modify it under the terms of the GNU Library General Public
@@ -69,8 +69,8 @@ class ResultSetBin : public ResultSet
69
69
70
70
~ResultSetBin ();
71
71
72
- bool isFullyLoaded () const ;
73
- void fetchRemaining ();
72
+ bool isFullyLoaded () const override ;
73
+ void fetchRemaining () override ;
74
74
75
75
private:
76
76
void flushPendingServerResults ();
@@ -82,45 +82,46 @@ class ResultSetBin : public ResultSet
82
82
uint32_t warningCount ();
83
83
84
84
private:
85
- bool readNextValue (bool cacheLocally= false );
85
+ bool readNextValue (bool cacheLocally= false ) override ;
86
86
87
87
protected:
88
- std::vector<mariadb::bytes_view>& getCurrentRowData ();
89
- void updateRowData (std::vector<mariadb::bytes_view>& rawData);
90
- void deleteCurrentRowData ();
91
- void addRowData (std::vector<mariadb::bytes_view>& rawData);
88
+ std::vector<mariadb::bytes_view>& getCurrentRowData () override ;
89
+
90
+ void updateRowData (std::vector<mariadb::bytes_view>& rawData) override ;
91
+ void deleteCurrentRowData () override ;
92
+ void addRowData (std::vector<mariadb::bytes_view>& rawData) override ;
92
93
93
94
private:
94
95
void growDataArray (bool complete= false );
95
96
96
97
public:
97
- void abort ();
98
- void close ();
98
+ void abort () override ;
99
+ // void close();
99
100
// bool fetchNext();
100
101
// SQLWarning* getWarnings();
101
102
// void clearWarnings();
102
103
bool isBeforeFirst () const ;
103
- bool isAfterLast ();
104
+ bool isAfterLast () override ;
104
105
bool isFirst () const ;
105
- bool isLast ();
106
- void beforeFirst ();
107
- void afterLast ();
108
- bool first ();
109
- bool last ();
110
- int64_t getRow ();
111
- bool absolute (int64_t row);
112
- bool relative (int64_t rows);
113
- bool previous ();
106
+ bool isLast () override ;
107
+ void beforeFirst () override ;
108
+ void afterLast () override ;
109
+ bool first () override ;
110
+ bool last () override ;
111
+ int64_t getRow () override ;
112
+ bool absolute (int64_t row) override ;
113
+ bool relative (int64_t rows) override ;
114
+ bool previous () override ;
114
115
int32_t getFetchSize () const ;
115
- void setFetchSize (int32_t fetchSize);
116
+ void setFetchSize (int32_t fetchSize);
116
117
int32_t getType () const ;
117
118
// int32_t getConcurrency() const;
118
119
119
120
private:
120
121
void checkClose () const ;
121
122
122
123
public:
123
- bool isCallableResult () const ;
124
+ bool isCallableResult () const override ;
124
125
bool isClosed () const ;
125
126
bool wasNull () const ;
126
127
@@ -130,40 +131,41 @@ class ResultSetBin : public ResultSet
130
131
SQLString zeroFillingIfNeeded (const SQLString& value, ColumnDefinition* columnInformation);
131
132
132
133
public:
133
- std::istream* getBinaryStream (int32_t columnIndex) const ;
134
- int32_t getInt (int32_t columnIndex) const ;
135
- int64_t getLong (int32_t columnIndex) const ;
136
- uint64_t getUInt64 (int32_t columnIndex) const ;
137
- uint32_t getUInt (int32_t columnIndex) const ;
138
- float getFloat (int32_t columnIndex) const ;
139
- long double getDouble (int32_t columnIndex) const ;
140
- bool getBoolean (int32_t index) const ;
141
- int8_t getByte (int32_t index) const ;
142
- int16_t getShort (int32_t index) const ;
143
-
144
- ResultSetMetaData* getMetaData () const ;
134
+ std::istream* getBinaryStream (int32_t columnIndex) const override ;
135
+ int32_t getInt (int32_t columnIndex) const override ;
136
+ int64_t getLong (int32_t columnIndex) const override ;
137
+ uint64_t getUInt64 (int32_t columnIndex) const override ;
138
+ uint32_t getUInt (int32_t columnIndex) const override ;
139
+ float getFloat (int32_t columnIndex) const override ;
140
+ long double getDouble (int32_t columnIndex) const override ;
141
+ bool getBoolean (int32_t index) const override ;
142
+ int8_t getByte (int32_t index) const override ;
143
+ int16_t getShort (int32_t index) const override ;
144
+
145
+ ResultSetMetaData* getMetaData () const override ;
145
146
/* Blob* getBlob(int32_t columnIndex) const;*/
146
147
147
- std::size_t rowsCount () const ;
148
+ std::size_t rowsCount () const override ;
148
149
149
- void setForceTableAlias ();
150
+ void setForceTableAlias () override ;
150
151
151
152
private:
152
- void rangeCheck (const SQLString& className,int64_t minValue,int64_t maxValue,int64_t value, ColumnDefinition* columnInfo);
153
+ void rangeCheck (const SQLString& className,int64_t minValue,int64_t maxValue,int64_t value,
154
+ ColumnDefinition* columnInfo);
153
155
154
156
protected:
155
- void setRowPointer (int32_t pointer);
157
+ void setRowPointer (int32_t pointer) override ;
156
158
157
159
public:
158
- int32_t getRowPointer ();
159
- std::size_t getDataSize ();
160
- bool isBinaryEncoded ();
160
+ int32_t getRowPointer () override ;
161
+ std::size_t getDataSize () override ;
162
+ bool isBinaryEncoded () override ;
161
163
void realClose (bool noLock= true );
162
- void bind (MYSQL_BIND* bind);
163
- bool get (MYSQL_BIND* bind, uint32_t colIdx0based, uint64_t offset);
164
- bool get ();
165
- bool setResultCallback (ResultCodec* callback, uint32_t column);
166
- bool setCallbackData (void * data);
164
+ void bind (MYSQL_BIND* bind) override ;
165
+ bool get (MYSQL_BIND* bind, uint32_t colIdx0based, uint64_t offset) override ;
166
+ bool get () override ;
167
+ bool setResultCallback (ResultCodec* callback, uint32_t column) override ;
168
+ bool setCallbackData (void * data) override ;
167
169
};
168
170
169
171
}
0 commit comments