11/* ***********************************************************************************
2- Copyright (C) 2020 MariaDB Corporation AB
2+ Copyright (C) 2020, 2025 MariaDB Corporation plc
33
44 This library is free software; you can redistribute it and/or
55 modify it under the terms of the GNU Library General Public
@@ -69,8 +69,8 @@ class ResultSetBin : public ResultSet
6969
7070 ~ResultSetBin ();
7171
72- bool isFullyLoaded () const ;
73- void fetchRemaining ();
72+ bool isFullyLoaded () const override ;
73+ void fetchRemaining () override ;
7474
7575private:
7676 void flushPendingServerResults ();
@@ -82,45 +82,46 @@ class ResultSetBin : public ResultSet
8282 uint32_t warningCount ();
8383
8484private:
85- bool readNextValue (bool cacheLocally= false );
85+ bool readNextValue (bool cacheLocally= false ) override ;
8686
8787protected:
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 ;
9293
9394private:
9495 void growDataArray (bool complete= false );
9596
9697public:
97- void abort ();
98- void close ();
98+ void abort () override ;
99+ // void close();
99100 // bool fetchNext();
100101 // SQLWarning* getWarnings();
101102 // void clearWarnings();
102103 bool isBeforeFirst () const ;
103- bool isAfterLast ();
104+ bool isAfterLast () override ;
104105 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 ;
114115 int32_t getFetchSize () const ;
115- void setFetchSize (int32_t fetchSize);
116+ void setFetchSize (int32_t fetchSize);
116117 int32_t getType () const ;
117118// int32_t getConcurrency() const;
118119
119120private:
120121 void checkClose () const ;
121122
122123public:
123- bool isCallableResult () const ;
124+ bool isCallableResult () const override ;
124125 bool isClosed () const ;
125126 bool wasNull () const ;
126127
@@ -130,40 +131,41 @@ class ResultSetBin : public ResultSet
130131 SQLString zeroFillingIfNeeded (const SQLString& value, ColumnDefinition* columnInformation);
131132
132133public:
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 ;
145146 /* Blob* getBlob(int32_t columnIndex) const;*/
146147
147- std::size_t rowsCount () const ;
148+ std::size_t rowsCount () const override ;
148149
149- void setForceTableAlias ();
150+ void setForceTableAlias () override ;
150151
151152private:
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);
153155
154156protected:
155- void setRowPointer (int32_t pointer);
157+ void setRowPointer (int32_t pointer) override ;
156158
157159public:
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 ;
161163 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 ;
167169};
168170
169171}
0 commit comments