1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-08 13:49:47 +00:00

Fix reading values from ResultSet/Row.

Send correct group_id to the db in a safer way.
This commit is contained in:
King_DuckZ 2015-12-31 00:38:44 +00:00
parent 9bb5689d48
commit 1532d3c083
4 changed files with 99 additions and 19 deletions

View file

@ -44,6 +44,8 @@ namespace pq {
std::string operator[] ( std::size_t parIndex ) const;
Row& operator= ( const Row& ) = delete;
Row& operator= ( Row&& ) = delete;
bool is_null ( std::size_t parIndex ) const;
bool is_null ( const std::string& parIndex ) const;
const_iterator begin ( void ) const;
const_iterator end ( void ) const;
@ -53,6 +55,8 @@ namespace pq {
private:
struct LocalData;
std::string get_as_str_assume_valid ( int parIndex ) const;
std::unique_ptr<LocalData> m_localData;
};